Skip to content

TJSONString

Class to represent string JSON data.

Declaration

Source position: fpjson.pp line 395

type

  TJSONString = class(TJSONData)
  public
  class var
    StrictEscaping: Boolean;
  constructor Create(const AValue: TJSONStringType);
  constructor Create(const AValue: TJSONUnicodeStringType);
  class function JSONType : TJSONtype;
  procedure Clear;
  function Clone : TJSONData;
  end;

Description

TJSONString must be used whenever string data must be represented. Currently the implementation uses an ANSI string to hold the data. This means that to correctly hold Unicode data, a UTF-8 encoding must be used.

Methods

Member Visibility Description
Clear public Clear value.
Clone public Clone string value.
Create public Create a new instance of string JSON data.
JSONType public native JSON data type.
See all Methods

Fieldss

Member Visibility Description
StrictEscaping public Use strict escaping.
See all Fieldss

See also

Name Description
TJSONFloatNumber Class to represent floating-point JSON data.
TJSONIntegerNumber Class to represent 32-bit integer JSON data.
TJSONInt64Number Class to represent 64-bit integer JSON data.
TJSONBoolean Class to represent boolean JSON data.
TJSONNull Class to represent boolean JSON data.
TJSONArray Class of TJSONArray.
TJSONObject Class of TJSONObject.