Sign in Join
FPDoc Onlineexperiment

TJSONData.AsString property

Member of TJSONDatapublicIn unit fpJson

Access the raw JSON value as a string.

Declaration

pascal
property AsString: TJSONStringType read GetAsString write SetAsString;

Description

AsString allows access to the raw value as a string. When reading, it converts the native value of the data to a string. When writing, it attempts to transform the string to a native value. If this conversion fails, an EConvertError exception is raised.

For TJSONString this will return the native value.

For complex values, reading or writing this property will result in an EConvertError exception.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.