You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Henrique Mendonca (JIRA)" <ji...@apache.org> on 2011/06/09 15:33:59 UTC

[jira] [Updated] (THRIFT-1202) Malformed JSON for map services parameters

     [ https://issues.apache.org/jira/browse/THRIFT-1202?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henrique Mendonca updated THRIFT-1202:
--------------------------------------

    Attachment: qunit-tests-java-test-server.patch

> 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