Import with #import "std/json_quote".
JsonQuoteInto :: (output: *Vec(u8), value: string, ascii: bool) -> boolAppends VALUE as a quoted JSON string, escaped as json.dumps escapes it.
JsonQuote :: (value: string, ascii: bool) -> TextModules / Standard library
JSON string serialization without a document tree. Appends into owned byte vectors; ASCII runs are copied in bulk and UTF-8 escapes preserve the document writer semantics on native and portable targets.
Import with #import "std/json_quote".
JsonQuoteInto :: (output: *Vec(u8), value: string, ascii: bool) -> boolAppends VALUE as a quoted JSON string, escaped as json.dumps escapes it.
JsonQuote :: (value: string, ascii: bool) -> Text