Json5StreamParser.tryParse

Json5StreamResult tryParse(out var value, out Json5Error err) @safe

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

Parameters

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

Returns

NEED_MORE, OK, or ERROR.