You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JsonElement.toString() Javadoc:
/**
* Returns a String representation of this element.
*/
The actual format of JsonElement.toString() is unspecified, but some
applications would break if the output format were changed to something that
isn't a valid JSON representation of that object.
Suggested fix:
To me it seems reasonable to expect toString() to produce valid JSON, not just
some arbitrary programmer-friendly string representation.
The toString() method should state that the return value is a valid JSON
representation of the object, and that details such as indentation are left
unspecified.
Subclasses like JsonArray and JsonObject should override toString() just to
provide improved documentation with example return values.
Original issue reported on code.google.com by hussdl on 22 Aug 2014 at 10:09
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
hussdl
on 22 Aug 2014 at 10:09The text was updated successfully, but these errors were encountered: