true on success, false on error (with errorMsg set).bool decodeJsonString(const(char)[] lexeme, out string decoded, out string errorMsg) @safeDecode a JSON string literal, processing escape sequences.
This function takes a lexeme slice (including the surrounding double quotes) and returns the decoded string value. It handles all JSON escape sequences as defined in RFC 8259.
Ownership: the result is always an owned copy, even on the escape-free fast path, so the decoded string stays valid if the underlying input buffer is later modified or freed.
lexeme | The string literal lexeme, including surrounding double quotes. |
decoded | Output parameter for the decoded string. |
errorMsg | Output parameter for error message on failure. |
true on success, false on error (with errorMsg set).