Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GsonBuilder.prettyPrint causes extra element when serializer returns JsonArray #22

Closed
GoogleCodeExporter opened this issue May 4, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Run the attached unit test

What is the expected output? What do you see instead?
 was expecting "[1,2,3,4,5]" and got "[,1,2,3,4,5]"

What version of the product are you using? On what operating system?
 GSON 1.1.1, Windows XP, Java 1.6.0_04

Please provide any additional information below.
 If I don't call setPrettyPrint, the unit test passes.  (Sorry if this
report came in twice, Google barfed the first time I tried to submit it)

Original issue reported on code.google.com by ericmu...@gmail.com on 23 Jul 2008 at 8:30

Attachments:

@GoogleCodeExporter
Copy link
Author

We will fix this in our next release. Thanks for reporting this bug. 

Original comment by inder123 on 24 Jul 2008 at 1:20

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

Original comment by joel.leitch@gmail.com on 26 Jul 2008 at 4:51

@GoogleCodeExporter
Copy link
Author

Fix was submitted in r122.

Original comment by joel.leitch@gmail.com on 26 Jul 2008 at 5:24

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant