gjson
gjson copied to clipboard
Has a way to escape all character?
I have a string x.x.x
, if escape , I need to change it to x\.x\.x
.
I think it can escape all character like this $x.x.x$
sjson can also support this syntax.
You can see information on escape characters for gjson
here:
https://github.com/tidwall/gjson/blob/master/SYNTAX.md#escape-character
Only one character escape. Sometime I need a raw string.
Perhaps having a utility function, like EscapePath
might be useful?
Like this, or a modifier @raw:""