rithyskun / google-gson

Automatically exported from code.google.com/p/google-gson
0 stars 0 forks source link

Multiple TypeAdapter issue.. #480

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
"Details":{

       "Role":"abc",
       "Team":
          {
             "active":"yes",
             "primary":"yes",
             "content":"abc"
             "Test":
             {
                 "key1":"value1",
                 "key2":"value2",
                 "key3":"value3"
             }
          }
}

 I am facing problem while my response is more dynamic..Team and Test can be JsonArray or JsonObject.. It really harassing me because sometime Test object may array when more data, may object when single data, string when no data. There is no consistency in response.

Let me know how much Google Json is extensible?.

What is the expected output? What do you see instead?
In very large response, One or more element can be dynamic(may be JsonObject, 
JsonArray, String) How can I register more TypeAdapter?

What version of the product are you using? On what operating system?
Anddroid 4.0+

Please provide any additional information below.

Original issue reported on code.google.com by bhavesh4...@gmail.com on 18 Oct 2012 at 7:41

GoogleCodeExporter commented 9 years ago
What's the bug?

Original comment by limpbizkit on 4 Feb 2013 at 3:35