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

Java library can't parse JSON generated by javascript TJSONProtocol

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Invalid
    • Affects Version/s: 0.10.0
    • Fix Version/s: None
    • Component/s: Java - Compiler
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: