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
Salesforce_ckumarSalesforce_ckumar 

Parsing JSON Array problem.

im getting a http response in the form of JSON array,, is there any support for parsing it in apex class.

AshanAshan

This wll help you

http://techblog.appirio.com/2010/01/calling-rest-web-service-json-with-apex.html

 

The important thing is json string should start with '{' to pass to this.

 

Ex:

JSONObject j = new JSONObject( jasonString );