Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Contributor
Posts: 27
Registered: ‎07-22-2010
My Device: Not Specified

Unable to parse data from a JSON server.......

Hello , 

 

  I am working on a application which use web services.I have an JSOn server which produses an JSON response.I am unable to parse this response.....I have done extensive googlinga nd still not able to find any code working.....i am using JSON.ME libraries...i have included then in my src...

 

One of the code that i have tried.....

 

                        JSONObject outer = new JSONObject(received);
                        String str =  outer.getString("sessid");
                        System.out.println("session Id"+str);

 

 

After executing it..It shows the following error in console....anJSONEXception error........

Developer
Posts: 19,623
Registered: ‎07-14-2008
My Device: Not Specified

Re: Unable to parse data from a JSON server.......