DecodeJsonObjectString
Interface AntViewDocument
Type: Method
Parameters: String JsonValue
Returns: String
Decode escaped text in the JSON object passed.
When data is put into a JSON object, some characters are automatically escaped in order to not disrupt the JSON object.
If you then get back that data directly as a JSON string, it might not exactly look like you expected.
This is a helper function to decode the JSON object back into a string to get the actual data that you are looking for.
The following characters are decoded by this function:
- \b, backspace character
- \n, newline character
- \f, formfeed character
- \r, carriage return character
- \t, horizontal tab character
- \", double quote character
- \/, forward slash
If JsonValue has double or single quotes around the whole JSON object string, then the quotes will be removed. (So only the outside string, not any name/value pairs)
If the JSON object in JsonValue returns "null" then this function will return an empty string.
AntView - The MS Edge WebView2 ActiveX control Date last changed: 09/30/2024