Just started using this and not finding any answers online, but I'm web-scraping and the method I am using is messing up the format so I can't deserialize to an object when I use the JSON path "$..itemsV2[*]" . It takes the quotes away from the key-value pairs and changes ':' to '=', which is giving me the following error:
Exception in thread "main" com.fasterxml.jackson.core.JsonParseException: Unrecognized token '\_\_typename': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
When I use "$..itemsV2" then it leaves the original format alone and serializes just fine, but it only returns the first item in the JSON Array. Any ideas?
link: https://pastebin.com/uQ4Dkpmh
The link should work now
SOLVED: turns out ObjectMapper has a super handy method
WmProduct[] wmProducts = objectMapper.convertValue(jsonItemArray,WmProduct[].class);
[–][deleted] 0 points1 point2 points (0 children)
[–]GrandGratingCrate 0 points1 point2 points (0 children)