Show: Object Pascal C++
Display Preferences

System.JSON.Utils.TJsonTextUtils

From Appmethod Libraries
Jump to: navigation, search

System.TObjectTJsonTextUtils

Object Pascal

TJsonTextUtils = class

C++

class PASCALIMPLEMENTATION TJsonTextUtils : public System::TObject

Properties

Type Visibility Source Unit Parent
class public
System.JSON.Utils.pas
System.JSON.Utils.hpp
System.JSON.Utils System.JSON.Utils

Description

Provides methods that can be useful when you use the JSON API.

TJsonTextUtils provides the following methods:

Character Escaping Flags

One of the parameters of ShouldEscapeJavaScriptString and WriteEscapedString (<CharEscapeFlags>) is an array of character escaping flags.

Each character escaping flag is a boolean value that indicates whether the character that it represents must be escaped (True) or not (False). Each flag represents the character that has an ordinal value equal to the index of the flag in the array. For example, if the array has 128 flags, each flag represents one of the ASCII characters.

TJsonTextUtils provides some predefined arrays of character escaping flags that you can use:

TJsonTextUtils Property Escaped Characters

DoubleQuoteCharEscapeFlags

  • Non-printable ASCII characters.
  • Double quotes (").

HtmlCharEscapeFlags

  • Non-printable ASCII characters.
  • HTML special characters (", ', <, >, &).

SingleQuoteCharEscapeFlags

  • Non-printable ASCII characters.
  • Single quotes (').
Personal tools
Translations