[ 
https://issues.apache.org/jira/browse/THRIFT-2535?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14000100#comment-14000100
 ] 

Kevin Sweeney commented on THRIFT-2535:
---------------------------------------

>From the documentation for TSimpleJSONProtocol [1]:

This protocol is write-only and produces a simple output format suitable for 
parsing by scripting languages. *It should not be confused with the 
full-featured TJSONProtocol*

[1] 
http://people.apache.org/~thejas/thrift-0.9/javadoc/org/apache/thrift/protocol/TSimpleJSONProtocol.html

> TJSONProtocol when serialized yields TField ids rather than names
> -----------------------------------------------------------------
>
>                 Key: THRIFT-2535
>                 URL: https://issues.apache.org/jira/browse/THRIFT-2535
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Java - Library
>            Reporter: Jake Farrell
>            Assignee: Jake Farrell
>            Priority: Trivial
>             Fix For: 0.9.2
>
>         Attachments: THRIFT-2535.patch
>
>
> When using the serializer to with TJsonProtocol to output json data the 
> TField id's are printed as the object name rather than the TField name. This 
> works when using Thrift to serialize and deserialize data, but when 
> TJsonProtocol is being used in other applications this can be difficult to 
> deal with. 
> Propose adding an option to serialize the object with the TField name rather 
> than the id's



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to