Sign in Join
FPDoc Onlineexperiment

JSONStringToString function

In unit fpJson

Convert a JSON-escaped string to a string.

Declaration

pascal
function JSONStringToString(const S: TJSONStringType): TJSONStringType

Arguments

S

JSON-escaped string to convert.

Function result

Pascal string with escaped characters replaced.

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

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