A text property can contain JSON. The API treats changes to this type of property as any text. If the field is tagged
Status |
---|
colour | Blue |
---|
title | restapi_json |
---|
|
on the other hand, it will be necessary to pass a valid JSON as the value to assign to the property.The Status |
---|
colour | Blue |
---|
title | restapi_json |
---|
|
tag can be specific: Status |
---|
colour | Blue |
---|
title | restapi_json/object |
---|
|
: the JSON must be an object Status |
---|
colour | Blue |
---|
title | restapi_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 |
---|
|
{
"property": {
"a": 1,
"b": 2,
"c": 3
}
} |
Code Block |
---|
{
"property": "{\r\n \"a\": 1,\r\n \"b\": 2,\r\n \"c\": 3\r\n}"
} |