Details
-
Type:
Improvement
-
Status:
In Progress
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: JsonParser
-
Labels:None
-
Number of attachments :
Description
When failing to parse a json string when providing a byte[], the result is a toString on the byte[], which is not optimal. Maybe it makes sense to add an option to the json parser to automatically convert the byte[] to string and use that in the exception message?
Just to make sure I understand, is this with serialization/deserialization? Aside from automatic use of base64 encoding, decoding, it seems dangerous to assume transformations between the two, most likely should throw an exception with meaningful description.