Open itmaple opened 2 years ago
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:""
I have a string
x.x.x
, if escape , I need to change it tox\.x\.x
. I think it can escape all character like this$x.x.x$
sjson can also support this syntax.