Unescjson
This function restores a JSON character string to its original state. It removes back slash () characters that the Escjson function would have put in place to enable getting incompatible characters in a JSON constant ("
, \
, tab
, or CR
).
DEST_STRING=unescjson(SOURCE_STRING)
DEST_STRING
has type Clbfile
or Char
.SOURCE_STRING
has type Clbfile
or Char
.Local Char JSONCONSTANT(100), MYCONSTANT(100)JSONCONSTANT='This is an \\"example\\" with back\\\\slashes'MYCONSTANT=unescjson(JSONCONSTANT) : # Now JSONCONSTANT contains 'This is an "example" with back\slashes'