Uploaded image for project: 'Kafka Connector'
  1. Kafka Connector
  2. KAFKA-99

Support relaxed Json format in the source connector

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 1.3.0
    • None
    • Source
    • None
    • Hide

      Add output.json.formatter configuration.

      output.format=[bson,json,schema]

      // Json specific configuration
      output.json.formatter=[extendedJson,simplifiedJson,someUserProvidedClass]

      From the Spec: Json formatter
      For Json strings, to provide the user more flexibility the following Json writer settings providers will be introduced:

      • extendedJson: Canonical extended json
      • simplifiedJson: as relaxed extended json but with the following conversions:
      • ObjectId: Hex string
      • Symbol: String
      • Decimal: String
      • DateTimes: ISO formatted String: yyyy-MM-ddTHH:mm:ss.SSSz
      • Binary: Base64 string
      • someUserProvidedClass: Users will be able to implement their own settings if desired and provide the path to the class.
      Show
      Add output.json.formatter configuration. output.format= [bson,json,schema] // Json specific configuration output.json.formatter= [extendedJson,simplifiedJson,someUserProvidedClass] From the Spec: Json formatter For Json strings, to provide the user more flexibility the following Json writer settings providers will be introduced: extendedJson: Canonical extended json simplifiedJson: as relaxed extended json but with the following conversions: ObjectId: Hex string Symbol: String Decimal: String DateTimes: ISO formatted String: yyyy-MM-ddTHH:mm:ss.SSSz Binary: Base64 string someUserProvidedClass: Users will be able to implement their own settings if desired and provide the path to the class.

    Description

      Extended Json has a relaxed format which makes numbers more accessible.

      Support relaxed numbers, dates, objectIds and binary values in the Json output. So the data is consumable by non MongoDB services.

      Attachments

        Activity

          People

            ross@mongodb.com Ross Lawley
            ross@mongodb.com Ross Lawley
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: