Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-1201

GenericRecord.toString can produce invalid JSON

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7.2
    • 1.7.3
    • java
    • None
    • Reviewed

    Description

      The GenericData.toString method can produce invalid JSON. The problem is that enums are printed without quotes, as in

      {"emum_field":a}

      instead of

      {"enum_field":"a"}

      Attachments

        1. vcs-diff4833874908267370412.patch
          17 kB
          Sharmarke Aden
        2. avro-1201.patch
          2 kB
          Sharmarke Aden
        3. avro-1201.patch
          0.7 kB
          Sharmarke Aden
        4. Avro-1201-TestCase.tar.gz
          2 kB
          Sharmarke Aden

        Issue Links

          Activity

            People

              saden1 Sharmarke Aden
              saden1 Sharmarke Aden
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: