true on success, putting the decoded text into out result. On failure, returns false
and leaves result unmodified.
bool parseJSON5StringLiteral(out string result, const(char)[] text, out Json5ErrorCode errCode) @safeDecode a JSON5 string literal (single or double quoted) into a D string.
Supports JSON5 features:
\n, \r, \t, \b, \f, `\'`, `\"`, `\\`, \0 (not followed by digit),hex \xNN, Unicode \uNNNN, and extended Unicode \u{HEX...} (1–6 hex digits).
\n, \r, or \r\n) is removedwithout producing a character.
true on success, putting the decoded text into out result. On failure, returns false
and leaves result unmodified.
bool parseJSON5StringLiteral(out string result, const(char)[] text) @safeDecode a JSON5 string literal.
This overload returns only success/failure and is preserved for backward compatibility. For error classification, use the overload that returns a Json5ErrorCode.