1 answer
Hi Sumit,List<Contact> conList=[Select id from Contact limit 1];//Object to StringString result=JSON.serialize(conList);System.debug(result);//String to objectString js1='{"Name":"Test","Place":"Sangli"}';Contact con=(Contact)JSON.deserialize(js1, Contact.class);System.debug(con); Mark, it as the best answer if you find this helpful.Thanks,Vinayak Karande