JSON数据显示SyntaxError:第1行上的不良字符串



这是我使用的示例数据,您可以帮助我如何解决此错误

 {    
        "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"  
    }

这是完全有效的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"
}

最新更新