Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-3145

JSON protocol does not handle bool and empty containers correctly

VotersStop watchingWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9.2, 0.9.3
    • 0.10.0
    • Haskell - Library
    • None
    • Patch Available

    Description

      I'm using Thrift to communicate with Apache Aurora and have had to make a couple of changes to the JSON protocol implementation, namely:

      • Write booleans as '1'/'0' instead of "true"/"false"
      • Parse empty lists

      The code appears identical in the current master branch. I've attached a patch with the changes I've made, but they've only been tested for my use case; I haven't looked at any specs.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            nsuke Nobuaki Sukegawa
            rhysadams Rhys Adams
            Votes:
            0 Vote for this issue
            Watchers:
            4 Stop watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment