I need to parse a JSON string like this into an APEX Map object, where I only want to go through the objects in the "results" array. How can I do this?
{
"count":6176,
"next":"https://example.herokuapp.com/objects/recaptures/?page=2",
"previous":null,
"results":[
{
"id":"101009",
"annual_savings":"96613.91",
"cost":1,
},
{
"id":"101116",
"annual_savings":"40851.75",
"cost":1,
}, ...
I need to put this into a Map like this:
public Map<String, String> myMap { get; set; }
I've found a method called JSON.deserialize
but how can I get it to just parse the "results" array?