You need to sign in to do that
Don't have an account?
Sandrine94748
searching for links to construct a JSON file
Hello,
I want to construct a JSON file in Apex, is there any code to parse the for loop and construct a JSON file.
Thank you for suggestion !
I want to construct a JSON file in Apex, is there any code to parse the for loop and construct a JSON file.
Thank you for suggestion !
Using the JSONGenerator class methods, you can generate standard JSON-encoded content.May I suggest you please check the below link for reference.
- https://developer.salesforce.com/docs/atlas.en-us.api_asynch.meta/api_asynch/datafiles_json_sample_file.htm
- https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_json_jsongenerator.htm
hope it helps.Thanks
Rahul Kumar