WHITESPACE_SEPARATED

Declares that objects in the input stream are separated by whitespace characters.

The stream is read as multiple JSON objects separated by any number of whitespace characters between objects. Starting and trailing whitespace characters are also permitted. Each individual object is parsed lazily, when it is requested from the resulting sequence.

Whitespace character is either ' ', '\n', '\r' or '\t'.

Example of WHITESPACE_SEPARATED stream content:

"""{"key": "value"}{"key": "value2"}   {"key2": "value2"}"""

Properties

Link copied to clipboard
Link copied to clipboard