Unit 'fpjson' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#fcl]

TJSONData.AsString

Access the raw JSON value as a string.

Declaration

Source position: fpjson.pp line 181

public property TJSONData.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

AsInteger

  

Access the raw JSON value as an 32-bit integer.

Value

  

The value of this data object as a variant.

AsInt64

  

Access the raw JSON value as an 64-bit integer.

AsFloat

  

Access the raw JSON value as a float.

AsBoolean

  

Access the raw JSON value as a boolean.

IsNull

  

Is the data a null value ?

AsJSON

  

Return a JSON representation of the value.


Documentation generated on: Nov 23 2024