Activity Forums Salesforce® Discussions How to pass a string as a json which contains different objects in Salesforce?

  • Yogesh

    Member
    December 5, 2019 at 11:05 am

    Hello,

    use this method below:-

    Map<String, Object> meta = (Map<String, Object>) JSON.deserializeUntyped(JsonString);
    List<Map<String, String>> myMaps = (List<Map<String, String>>) meta.get('results');

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos