Import with #import "std/json_bytes".

JsonStringRunEnd :: (text: string, start: s64) -> s64

Starts outside [0,text.count) are returned unchanged. Valid starts stop at the first special byte or exactly at text.count. The input is never changed.

JsonQuoteRunEnd :: (text: string, start: s64, ascii: bool) -> s64

Serialization also stops before DEL and non-ASCII bytes when ensure-ASCII output is requested. Unicode decoding and escape policy remain in the writer.

Source ↗ · All modules