writeJSON
fn
void writeJSON(W)(ref W output, const var value, JsonWriteOptions opts = JsonWriteOptions.init) @safeWrite a var value as JSON to an output range.
This function allows zero-allocation serialization when writing to a pre-allocated buffer or output stream.
Parameters
output | The output range to write to. |
value | The value to serialize. |
opts | Options controlling serialization behavior. |