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

Creating JSON format Data.

Hello guys,


I am able to created JSON data from records.

Can we create JSON data for parent child relation(records) dynamically using apex.


Thanks in advance.


There isn't a JSON parser in Apex at the moment.  You may want to check out the REST API, or perhaps looking at the JavaScript Remoting developer trial.  You can send me an email with your org ID for the latter (email can be found in my username link).