Newline-delimited JSON

If your data object uses newline-delimited JSON, you must specify that in your object schema.

  1. Specify the schema for a single object.
    All objects in a single data object must have the same schema.
  2. Include a property called x-stream and set it to true.
    This code is a newline-delimited JSON schema example:
    {
      "$schema": "http://json-schema.org/draft-06/schema#",
          "x-stream":true,
          "type": "object",
          "properties": {
            "field1": {
              "type": "integer"
            },
            "field2": {
              "type": "string"
            }
        }
    

    This code shows the JSON data that corresponds with the schema example:

    {"field1":123,"field2":"Some text"}
    {"field1":456,"field2":"Another text"}
    {"field1":789,"field2":"More text to be added"}
    

    Validations that are performed on import for newline-delimited JSON follow the same rules as conventional JSON.