Why does the error mean? In trying to style a sharepoint list with column formatting with the follow code (taken from the documentation)?
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "div",
"attributes": {
"class": "=if(@currentField < 7,'sp-field-severity--warning', '')"
},
"children": [
{
"elmType": "span",
"style": {
"display": "inline-block",
"padding": "0 4px"
},
"attributes": {
"iconName": "=if(@currentField <= 70,'Error', '')"
}
},
{
"elmType": "span",
"txtContent": "@currentField"
}
]
}
this is the error
Error saving column format:
{
"d":{
"CustomFormatter":"{\"$schema\":\"https:\u002F\u002Fdeveloper.microsoft.com\u002Fjson-schemas\u002Fsp\u002Fv2\u002Fcolumn-formatting.schema.json\",\"elmType\":\"div\",\"attributes\":{\"class\":\"=if(@currentField < 7,'sp-field-severity--warning', '')\"},\"children\":[{\"elmType\":\"span\",\"style\":{\"display\":\"inline-block\",\"padding\":\"0 4px\"},\"attributes\":{\"iconName\":\"=if(@currentField <= 70,'Error', '')\"}},{\"elmType\":\"span\",\"txtContent\":\"@currentField\"}]}",
"Id":""
}
}