Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

New answers tagged

0 votes

How to manage both single and an array of json reponse from the same external system?

String jsonStr = '[{"name":"Ajay"}, {"name":"Sohan"}]'; Object obj = (Object)JSON.deserializeUntyped(jsonStr); System.debug(obj instanceOf List<Object>);//...
Md Shahbaz's user avatar

Top 50 recent answers are included