[ https://issues.apache.org/jira/browse/THRIFT-1202?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13047365#comment-13047365 ]
Roger Meier commented on THRIFT-1202: ------------------------------------- Could you reuse Xtruct and Xtruct2 instead of adding new definitions foo and foo2 to ThriftTest.thrift? and use something like: {noformat} list<Xtruct> testStructList(1: list<Xtruct> thing), list<Xtruct2> testStructNestList(1: list<Xtruct2> thing), {noformat} Thanks Roger > Malformed JSON for map<string,type> services parameters > ------------------------------------------------------- > > Key: THRIFT-1202 > URL: https://issues.apache.org/jira/browse/THRIFT-1202 > Project: Thrift > Issue Type: Bug > Components: JavaScript - Compiler, JavaScript - Library > Affects Versions: 0.7 > Environment: Firefox 3.6.16 || 4.0.1 > Reporter: Henrique Mendonca > Labels: javascript > Attachments: qunit-tests-java-test-server.patch > > > I have a problem if I try to use Strings as map keys. Somehow I get two > double quotes around the key values, e.g. ""key"" instead of "key": > testStringMap({'a':'123', 'a b':'with spaces', 'test':'test', ... }) sends: > [1,"testStringMap",1,0,{"1":{"map":["str","str",5,{""a"":"123",""a b"":"with > spaces",""test"":"test", ... }]}}] > I guess it's something wrong on the write methods from compiled JS services... > Could someone test this on their machine? Thank you. > Cheers, > Henrique -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira