Get Data As a String


ASTER::EXPRESSION::JSON::Obtain data as a string using a JSON Pointer.

Specify the path using JSON Pointer to receive the value from the JSON data as a “string”.

If the data type at the specified path is not a string, numeric or Boolean types will be converted to a string. For data structures like Object | Array, a Dump will be obtained.

ExStrAsJsp( "ASTER", "/AvaMax/oh" )

Parameter

If the JSON data is as follows,

{
    "AvaMax":{
        "oh":"she's sweet but a psycho"
    }
}

The JSON Pointer will be as follows:

"/AvaMax/oh"

The return value is “she’s sweet but a psycho”.

Key Point

Returns a JSON Pointer Error if no data exists at the specified path.

Get Data As a String attempts to convert data types other than strings into a string. Type conversion errors due to data types are only possible with binary types.