[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'fpjson' (#fcl)

StringToJSONString

Convert a string to a JSON-escaped string

Declaration

Source position: fpjson.pp line 573

function StringToJSONString(

  const S: TJSONStringType

):TJSONStringType;

Arguments

S

  

String to convert to JSON string.

Function result

properly escaped JSON string

Description

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

\ / "  #8 #9 #10 #12 #13.

See also

JSONStringToString

  

Convert a JSON-escaped string to a string

JSONTypeName

  

Convert a JSON type to a string


Documentation generated on: Nov 14 2015