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
Aviator517Aviator517 

Parsing JSON in Apex

I have this JSON code, that I'd like parsed within and apex controller and displayed on a Visualforce page.

{"Object1":[{"id":1,"name":"SomeName"}],"Object2":[{"id":1,"location":"SomeLocation"}]}

I feel like this should be fairly simple, but can't get it to work. Can anyone point me in the right direction?
Ramu_SFDCRamu_SFDC
Please review the JSONParser class methods at the link http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_json_jsonparser.htm