这是我正在使用的示例数据,您可以帮我解决此错误
{
"type": "institution",
"title": "Sue Ryder1",
"field_institution_setup_date": {
"und": [ {
"value": "2014-11-01",
"value2": "2018-11-01"
} ]
},
"field_institution_user_limit": 100,
"field_institution_product_access": {
"und": [ {
"code": "pfs"
}, {
"code": "lrn"
} ]
},
"field_logo": "533766"
}
答案 0 :(得分:1)
这是完全有效的JSON。下面是您使用的格式化版本。
{
"type": "institution",
"title": "Sue Ryder1",
"field_institution_setup_date": {
"und": [{
"value": "2014-11-01",
"value2": "2018-11-01"
}]
},
"field_institution_user_limit": 100,
"field_institution_product_access": {
"und": [{
"code": "pfs"
}, {
"code": "lrn"
}]
},
"field_logo": "533766"
}