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

JSON encoded Avro values

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.5.0
    • c
    • None

    Description

      I've added support in the C library for getting the JSON encoding of an Avro value. There are three patches in this series. One of the changes is to upgrade our copy of the Jansson library to 1.3. (All of the existing test cases pass with the upgrade.) Some Avro values have JSON encodings that aren't technically valid JSON top-level values, since they're just bare scalars, but the new Avro function works with these just fine. The test_avro_data test case has been updated to verify the JSON encodings for each of the Avro schema types it tests.

      Attachments

        1. 0001-avro_schema_to_json-can-take-const-schema.patch
          4 kB
          Douglas Creager
        2. 0002-Upgrading-to-Jansson-1.3.patch
          364 kB
          Douglas Creager
        3. 0003-JSON-encoded-Avro-values.patch
          16 kB
          Douglas Creager

        Issue Links

          Activity

            People

              dcreager Douglas Creager
              dcreager Douglas Creager
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: