Skip to main content

Global context.WriteJSONValue

WriteJSONValue

Syntax

WriteJSONValue(<Value>)

Parameters

<Value> (required)

Type: Structure, FixedStructure, Array, FixedArray, Number, String, Boolean, Undefined. Value that must be serialized into JSON. If a parameter type is Structure, FixedStructure, Array, or FixedArray, their values must belong to one of the following types:

  • Structure
  • FixedStructure
  • Array
  • FixedArray
  • Number
  • String
  • Boolean
  • Undefined

Values of the Structure, FixedStructure, Array, or FixedArray types have the same restrictions as the <Value> parameter. A value of the Undefined type is converted into NULL.

If <Value> cannot be converted into/from JSON due to unsupported types, the following exception is thrown: "Value contains data of invalid types."

If the conversion into a string is unavailable due to circular object dependency, the following exception is thrown: "Value contains circular dependencies."

Returned value

Type: String. JSON string

Description

Converts a value into a JSON string.

Availability

Thin client, web-client, mobile client, server, thick client, external connection, mobile application (client), mobile application (server), mobile standalone server.

Translation

Русская версия: Глобальный контекст.ЗаписатьЗначениеJSON (Global context.WriteJSONValue)