Import with #import "std/json_quote".

JsonQuoteInto :: (output: *Vec(u8), value: string, ascii: bool) -> bool

Appends VALUE as a quoted JSON string, escaped as json.dumps escapes it.

JsonQuote :: (value: string, ascii: bool) -> Text

Source ↗ · All modules