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
penchala raju 2penchala raju 2 

I want to read the JSON file data in Apex

I have an excel file which I converted to JSON file.
Now I want read the Json file path from apex and parse the date into apex.
I did this requirement through lightning and apex, I am loading the excel file thenbased on criteria I am creating records, but I want to do this requirement as script by converting Excel file to JSON then reading JSON file in APEX.

Can anyone give best approach to complete this. Thanks in Avance

HarshHarsh (Salesforce Developers) 
Hi Penchala, 
  • You can use the JSONParser class methods to parse JSON-encoded content.
  • For more information, you can follow the Apex Developer Guide by using the following link.
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_json_jsonparser.htm 

Please mark it as Best Answer if the above information was helpful.

Thanks.