老师怎么写对不啊 能让好帮手暮暮子答吗
{
"type": "object",
"title": "empty object",
"properties": {
success:true,
Date"listData":{
"projectWeek":[{
"imgUrl":'https://img1.sycdn.imooc.com//szimg/5f1edafb709e18bf912000676.png',
"title":"前端性能优化--6大角度综合型优化方案",
},
{
"imgUrl":'https://img1.sycdn.imooc.com//szimg/5c18d2d8000141c506000338.jpg',
"title":"剑指java面试-offer直通车",
},{
"imgUrl":"https://img1.sycdn.imooc.com//szimg/5ac2dfe100014a9005400300.jpg",
"title":"vue2.5 开发去哪儿网app ",
},
{
"imgUrl":"https://img1.sycdn.imooc.com//szimg/5d1032ab08719e0906000338.jpg",
"title":"spark Streaming ",
}
],
"projectMinth":[{
{
"imgUrl":'https://img1.sycdn.imooc.com//szimg/5f1edafb709e18bf912000676.png',
"title":"前端性能优化--6大角度综合型优化方案",
},
{
"imgUrl":'https://img1.sycdn.imooc.com//szimg/5c18d2d8000141c506000338.jpg',
"title":"剑指java面试-offer直通车",
},{
"imgUrl":"https://img1.sycdn.imooc.com//szimg/5ac2dfe100014a9005400300.jpg",
"title":"vue2.5 开发去哪儿网app ",
},
{
"imgUrl":"https://img1.sycdn.imooc.com//szimg/5d1032ab08719e0906000338.jpg",
"title":"spark Streaming "
},
"pathWeek",[{
{
"imgUrl":'https://img1.sycdn.imooc.com//szimg/5f1edafb709e18bf912000676.png',
"title":"前端性能优化--6大角度综合型优化方案",
},
{
"imgUrl":'https://img1.sycdn.imooc.com//szimg/5c18d2d8000141c506000338.jpg',
"title":"剑指java面试-offer直通车",
},{
"imgUrl":"https://img1.sycdn.imooc.com//szimg/5ac2dfe100014a9005400300.jpg",
"title":"vue2.5 开发去哪儿网app ",
},
{
"imgUrl":"https://img1.sycdn.imooc.com//szimg/5d1032ab08719e0906000338.jpg",
"title":"spark Streaming ",
}
}
}




正在回答 回答被采纳积分+1
同学你好,格式有问题,如下:
1、success属性需要使用双引号包裹,如下:

2、Date缺少双引号包裹, 它是一个属性,值为一个对象,该对象下有listData等属性。格式应该是:"Date": { "ListData" : {} }

另外,ListData和projectWeek等属性的嵌套格式不对,具体的可以参考修改后的完整代码,如下:
{
"type": "object",
"title": "empty object",
"properties": {
"success": true,
"Date": {
"listData": {
"projectWeek": [
{
"imgUrl": "https: //img1.sycdn.imooc.com//szimg/5f1edafb709e18bf912000676.png",
"title": "前端性能优化--6大角度综合型优化方案",
},
{
"imgUrl": "https: //img1.sycdn.imooc.com//szimg/5c18d2d8000141c506000338.jpg",
"title": "剑指java面试-offer直通车",
},
{
"imgUrl": "https://img1.sycdn.imooc.com//szimg/5ac2dfe100014a9005400300.jpg",
"title": "vue2.5 开发去哪儿网app ",
},
{
"imgUrl": "https://img1.sycdn.imooc.com//szimg/5d1032ab08719e0906000338.jpg",
"title": "spark Streaming ",
}
],
"projectMinth": [
{
"imgUrl": "https: //img1.sycdn.imooc.com//szimg/5f1edafb709e18bf912000676.png",
"title": "前端性能优化--6大角度综合型优化方案",
},
{
"imgUrl": "https: //img1.sycdn.imooc.com//szimg/5c18d2d8000141c506000338.jpg",
"title": "剑指java面试-offer直通车",
},
{
"imgUrl": "https://img1.sycdn.imooc.com//szimg/5ac2dfe100014a9005400300.jpg",
"title": "vue2.5 开发去哪儿网app ",
},
{
"imgUrl": "https://img1.sycdn.imooc.com//szimg/5d1032ab08719e0906000338.jpg",
"title": "spark Streaming "
}
],
"pathWeek": [
{
"imgUrl": "https: //img1.sycdn.imooc.com//szimg/5f1edafb709e18bf912000676.png",
"title": "前端性能优化--6大角度综合型优化方案",
},
{
"imgUrl": "https: //img1.sycdn.imooc.com//szimg/5c18d2d8000141c506000338.jpg",
"title": "剑指java面试-offer直通车",
},
{
"imgUrl": "https://img1.sycdn.imooc.com//szimg/5ac2dfe100014a9005400300.jpg",
"title": "vue2.5 开发去哪儿网app ",
},
{
"imgUrl": "https://img1.sycdn.imooc.com//szimg/5d1032ab08719e0906000338.jpg",
"title": "spark Streaming ",
}
]
}
}
}
}祝学习愉快~
相似问题
登录后可查看更多问答,登录/注册
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星