Activity Forums Salesforce® Discussions Nested json parsing in Salesforce

  • sushant

    Member
    January 19, 2017 at 2:07 pm

    Hi Vikas,

    The method JSON.deserializeUntyped works well for this type of problem. What you get returned is a map:

    Map<String, Object> m = (Map<String, Object>) JSON.deserializeUntyped(jsonString);
    You can use the normal map methods to get hold of the keys or to see if a key is present

    Thanks

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos