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

Sylwester Lachiewicz commented on THRIFT-2217:
----------------------------------------------

Status for Go on master: {{TSimpleJSONProtocol.OutputBool}} writes the JSON 
{{true}} and {{false}} literals 
([simple_json_protocol.go|https://github.com/apache/thrift/blob/master/lib/go/thrift/simple_json_protocol.go]).
 I have not checked the Java and Python components this ticket also carries.

_This comment was created with AI assistance._

> TSimpleJSONProtocol exports boolean as 1/0
> ------------------------------------------
>
>                 Key: THRIFT-2217
>                 URL: https://issues.apache.org/jira/browse/THRIFT-2217
>             Project: Thrift
>          Issue Type: Bug
>          Components: Go - Library, Java - Library, Python - Library
>    Affects Versions: 0.9
>            Reporter: Andrew Selder
>            Priority: Major
>         Attachments: thrift-2217-tsimple-json-output-booleans.patch
>
>
> Both the TSimpleJSONProtocol and TJSONProtocols export bool values with a 1 
> for true and a 0 for false.
> JSON defines true and false literals which would be a much more appropriate 
> representation of the actual state of the object.
> Consumers of the exported JSON end up with integer values instead of 
> booleans. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to