JSONWriterSettings.Based on record parameters

Syntax:

New JSONWriterSettings(<NewLines>, <PaddingSymbols>, <UseDoubleQuotes>, <EscapeCharacters>, <EscapeAngleBrackets>, <EscapeLineTerminators>, <EscapeAmpersand>, <EscapeSingleQuotes>, <EscapeSlash>)

Parameters:

<NewLines> (optional)

Type: JSONLineBreak.
Defines the string break method to be used while writing JSON data.
Default value: Auto.

<PaddingSymbols> (optional)

Type: String.
Defines indent characters used while writing JSON.
Applied only if the JSONLineBreak value is different from None.
Default value: " ".

<UseDoubleQuotes> (optional)

Type: Boolean.
Defines whether names of JSON properties are written in double quotation marks.
Default value: True.

<EscapeCharacters> (optional)

Type: JSONCharactersEscapeMode.
Defines method used to screen (substitute) characters while writing JSON data.
Default value: None.

<EscapeAngleBrackets> (optional)

Type: Boolean.
Defines whether "<" and ">" characters are screened while writing.
Default value: False.

<EscapeLineTerminators> (optional)

Type: Boolean.
Defines whether line separators U+2028 (line-separator) and U+2029 (page-separator) are screened.
Default value: True.

<EscapeAmpersand> (optional)

Type: Boolean.
Defines whether the ampersand character "&" is screened while writing.
Default value: False.

<EscapeSingleQuotes> (optional)

Type: Boolean.
Defines whether single quotes are screened while writing.
Is set to True, if the UseDoubleQuotes property is set False.
Default value: False.

<EscapeSlash> (optional)

Type: Boolean.
Defines whether slash is screened while writing a value.
Default value: False.

Description:

Creates an object of JSON writing parameters.

    

1C:Enterprise Developer's Community