NdjsonWriter.putRaw

bool putRaw(const(char)[] json, out NdjsonError err, JsonPolicy policy = JsonPolicy.init)

Write pre-serialised JSON text as a record after validating it.

The text must be a single valid JSON value with no CR or LF; it is written unchanged, which preserves exact number spellings.

Parameters

jsonJSON text of one value.
errReceives the error when false is returned.
policyPolicy used to validate json.

Returns

true when the record was written; nothing is written otherwise.