Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
None
-
None
-
Patch Available
Description
Example to reproduce: Given a list<string> holding one "element", the following JSON data are rendered:
"lst":[11,1,"element"]
The expected sequence would be:
"lst":["str",1,"element"]
This is due to the method OutputElemListBegin(), which JSON inherits from SimpleJSON. This method writes the field type as a byte value, without passing it through TypeIdToString(), which is incorrect for JSON.
EDIT: Similar problem appears when a "lst" should be read.
Attachments
Issue Links
- depends upon
-
THRIFT-1980 Modernize Go tooling, fix go client libary.
- Closed