Skip to main content

JsonItemsDecoder

Select 'JSON Items (Streaming)' to stream-decode a single JSON document by yielding each element of a nested array, one at a time. Use this for very large single-document JSON responses (e.g. a wrapping object containing a multi-GB array) where buffering the whole document into memory would cause out-of-memory errors. Powered by the ijson streaming parser.

  • type: object
  • required: ["type","items_path"]

type​

  • Required: Yes
  • type: string
  • enum: ["JsonItemsDecoder"]

items_path​

Dot-separated path to the JSON array whose elements should be yielded as records. Uses ijson path syntax (e.g. data.users), not JSONPath syntax — do not include leading $. or trailing [*].

  • Required: Yes
  • type: string

Examples:

dataByDepartmentAndSearchTerm
dataByAsin
data.users

encoding​

Text encoding used to decode the streamed bytes before JSON parsing.

  • Required: No
  • type: string
  • default: utf-8
Was this page helpful?