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

Java library can't parse JSON generated by javascript TJSONProtocol

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Invalid
    • 0.10.0
    • None
    • Java - Compiler
    • None

    Description

      Thrift definition:

      struct Entity {
      1: string id;
      }
      service EntityService {
      void save(1: Entity entity);
      }

      JSON document: [1,"save",1,0,{"1":{"rec":{"1":{"str":"q19786052"}}}}]

      Error:
      org.apache.thrift.protocol.TProtocolException: Unexpected character:}

      (Additionally, the parser would ideally state where it found the unexpected character.)

      Attachments

        Activity

          People

            Unassigned Unassigned
            dhasenan Neia Neutuladh
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: