Skip to content

JSON Transformation #19

@GoogleCodeExporter

Description

@GoogleCodeExporter
What steps will reproduce the problem?
I had a JSON representation below:

{"articleIDs":[1735912,1735906,1735904,1735903,1735901,1735667,1735666,1735663,1
735662,1735657,1735654,1735652,1735601,1735503,1735458,1735455,1735454,1735301,1
735253,1735251,1735151,1735101,1735053,1735052,1735001,1734951,1734851,1734751,1
734701,1734651],"articleIDsCnt":30,"resultCode":0}

and parse with like this:

List<Integer> articleIDs;
articleIDs = Resting.getByJSON(request.getBaseURI(), request.getServicePort(), 
p, Integer.class, "articleIDs");

and then, I got a exceptions like below:
WARN/System.err(28847): com.google.resting.json.JSONException: JSONArray[0] is 
not a JSONObject.


What is the expected output? What do you see instead?
Given example works well. 
Not only a "Class"-ified object, I just wanna single array object also can be 
transformed as well.

What version of the product are you using? On what operating system?
Latest, Android API Version 11.

Please provide any additional information below.

Original issue reported on code.google.com by kre...@gmail.com on 4 Oct 2011 at 2:27

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions