Function tvm::ffi::EscapeStringJSON#
Defined in File string.h
Function Documentation#
-
inline String tvm::ffi::EscapeStringJSON(const String &value)#
Return a JSON-escaped version of the string (RFC 8259).
Uses
\\uXXXXfor control characters, escapes\\/,\\b,\\fper the JSON spec. Non-ASCII bytes are passed through as-is (valid UTF-8 is preserved).- Parameters:
value – The input string
- Returns:
The escaped string, quoted with double quotes