+ Start a Discussion
Jayesh Shewale12345Jayesh Shewale12345 

JSON data deserialisation

Hi Everyone,
I am doing integration in which I am hitting web service which is giving me some data and I want to store that data into my salesforce objects please suggest me how to do it:

following is the link:
http://intelora.co.in/assessment/eshopdemo.php?keyword=shirt

Please suggest me how to deserialize the response of this service.

 
Khan AnasKhan Anas (Salesforce Developers) 
Hi Jayesh,

Greetings to you!

You need to create an apex class and deserialize the JSON to store information in the apex class variable and need to pull the data from the endpoint and using JSON deserialization push it into the data structure. 

Please refer to the below links which might help you further with the above requirement.

http://blog.deadlypenguin.com/blog/2015/11/30/json-deserialization-in-salesforce/

https://www.sfdcstuff.com/2015/06/parsing-json-in-apex.html

https://opfocus.com/json-deserialization-techniques-in-salesforce/

https://webkul.com/blog/generate-json-data-and-convert-in-pageblocktable/

https://webkul.com/blog/how-to-implement-json-in-apex-salesforce/

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas