sedhuait / google-gson

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

JsonSyntaxException : Expected BEGIN_OBJECT but was STRING #583

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

i want to get the account details from mailchimp, but i'm encountered with 
JsonSyntaxException.

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

MailChimpAPI 1.3

Please provide any additional information below.

Original issue reported on code.google.com by sanakkay...@gmail.com on 17 Jul 2014 at 10:37

Attachments:

GoogleCodeExporter commented 9 years ago
This exception means that Gson saw a '{' character when it was expecting a 
string.

For instance,

Receiving {"user": "jake"} when it was expecting {"user": {"name": "jake"}} 
would cause this. Note how the 'user' type was an object rather than a string.

Your example doesn't have any Gson use in it so it's hard to know what exactly 
is wrong. If you have more questions please ask on StackOverflow using the 
'gson' tag.

Original comment by j...@squareup.com on 9 Aug 2014 at 5:39

GoogleCodeExporter commented 9 years ago
@Project Member: your statements are contradictory. 

Original comment by sumithnp...@gmail.com on 10 Oct 2014 at 10:52