function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
shra1_devshra1_dev 

REG: Parsing JSON file in Apex...........

Hi,

 

Would like to know whether there are any helpful classes and methods to Parse a JSON file by using Apex.

 

In Java we can utilize JSONObject to parse the JSON files.(http://www.json.org/java/)

 

Any help will be appreciated.........

 

 

Regards,

Shravan

ForceMantis (Amit Jain)ForceMantis (Amit Jain)

You can use following class is apex to parse JSON.

 

http://code.google.com/p/apex-library/source/browse/trunk/JSONObject/src/unpackaged/classes/JSONObject.cls?r=14

 

Amit

 

If a reply to a post answers your question or resolves your problem, please mark it as the solution to the post so that others may benefit.