0

can someone provide any Idea on below requriement: my requirment is : We received JSON data ( complex have Tree structured more than 300 values) , Based on JSON data , need to generate Response . For example : workbench --> RestExplorer - > / services/apex/apexRest/Id = 000000000 Then i need to generate Response as Below :

caseInfo -- PartyId : 00000 -- ProductType : ABc --Product : abc Arrangement --arrangemetn Number :9999 --isseleccted :Yes --totalnumberrecords : 20 How can i achive this functionality ...Pls provide any sample data or any references
Thanks

  • You need to prepare your response class from the json then response.responseBody = Blob.valueOf(Json.serialize(result)); – Avijit Chakraborty Jul 10 at 14:16