discomarathon / google-gson

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

Support for StringBuilder/StringBuffer #175

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Make an object with a StringBuilder
2. Convert to JSON

What is the expected output?

I expect a JSON string

What do you see instead?

I see this:

{"value":["S","u","c","c","e","s","s"," ","f","o","r",":", ...

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

1.4 windows

Please provide any additional information below.

You might think it is correct since a StringBuilder is not really a string
under the covers.  But I suggest that most people will want to see a String
in json rather than an array of chars...

Thanks for your consideration.

Chris

Original issue reported on code.google.com by mchy...@gmail.com on 20 Nov 2009 at 6:26

GoogleCodeExporter commented 9 years ago
Would you want the same behavior for StringBuffer too? Would you want 
deserialization 
of a String to StringBuilder/StringBuffer as well? 

Original comment by inder123 on 8 Jan 2010 at 7:27

GoogleCodeExporter commented 9 years ago

Original comment by limpbizkit on 20 Aug 2010 at 5:48

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Fixed in r717

Original comment by inder123 on 31 Jan 2011 at 11:15