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

JSONStringToString

Convert a JSON-escaped string to a string.

Declaration

Source position: fpjson.pp line 791

function JSONStringToString(

  const S: TJSONStringType

):TJSONStringType;

function JSONStringToString(

  const S: UnicodeString

):TJSONStringType;

Arguments

S

  

JSON-escaped string to convert.

Function result

Pascal string with escaped characters replaced.

Arguments

S

  

JSON-escaped string to convert.

Description

JSONStringToString examines the string S and replaces any special characters by an escaped string, as in the JSON specification. The following escaped characters are recognized:

\\ \" \/ \b \t \n \f \r \u000X

See also

StringToJSONString

  

Convert a string to a JSON-escaped string.

JSONTypeName

  

Convert a JSON type to a string.


Documentation generated on: Dec 27 2024