JsonStreamParser.tryParse

JsonStreamResult tryParse(out var value, out JsonError err) @safe

Attempt to parse the buffered data as a single JSON root value.

Parameters

valueParsed value on OK; var.init otherwise.
errPopulated on ERROR; JsonError.init otherwise.

Returns

NEED_MORE if more input is needed, OK on success, or ERROR on failure.