Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.10.0, 0.11.0
-
None
Description
I'm trying to transmit a list of lists, like this:
service HelloSvc { list<list<string>> test() }
Using XHR Transport and JSON Protocol, with a service implementation in Python like this:
class HelloSvcHandler: def __init__(self): pass def test(self,): return [ ["s1", "s2"], ["s3", "s4"], ["s5"] ]
The serialized response looks good to me (seen in browser development tools):
[1,"test",2,0,{"0":{"lst":["lst",3,["str",2,"s1","s2"],["str",2,"s3","s4"],["str",1,"s5"]]}}]
However, when deserialized to JavaScript, the result looks like this:
[["s1","s2"],[],[]]
I would expect it to look like this:
[["s1","s2"],["s3","s4"],["s5"]]
It looks to me like during JSON deserialization, all but the first entry in the list of lists lose their content.
Attachments
Issue Links
- depends upon
-
THRIFT-3748 Node.js Deserialization of lists of lists is broken
- Closed
- links to