Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

A text property can contain JSON. The API treats changes to this type of property as any text. If the field is tagged

Status
colourBlue
titlerestapi_json
on the other hand, it will be necessary to pass a valid JSON as the value to assign to the property.
The
Status
colourBlue
titlerestapi_json
tag can be specific:

  • Status
    colourBlue
    titlerestapi_json/object
    : the JSON must be an object

  • Status
    colourBlue
    titlerestapi_json/array
    : the JSON must be an array

The value to be assigned can be directly indicated in JSON, or as a string that represents JSON.

Examples:

Code Block
languagejson
{
   "property": {
       "a": 1,
       "b": 2,
       "c": 3
   }
}

Code Block
{
   "property": "{\r\n       \"a\": 1,\r\n       \"b\": 2,\r\n       \"c\": 3\r\n}"
}