Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 104 by
pft...@gmail.com: StringBuilder and StringBuffer values
are unquoted
https://code.google.com/p/json-simple/issues/detail?id=104
When converting a StringBuilder or StringBuffer object to JSON the values
are not treated as strings and and not quoted in the resulting JSON string.
assertEquals("\"v\"", JSONValue.toJSONString(new StringBuilder("v")));
assertEquals("\"v\"", JSONValue.toJSONString(new StringBuffer("v")));
This can be easily fixed by treating StringBuilder and StringBuffer values
as strings.
See attached diff for the fix.
Attachments:
string_builder_diff.txt 1.5 KB
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings