老师怎么写对不啊 能让好帮手暮暮子答吗

老师怎么写对不啊 能让好帮手暮暮子答吗

{

  "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 ",

        }

  }

}

https://img1.sycdn.imooc.com//climg/625d46ba09467e4315190550.jpg

https://img1.sycdn.imooc.com//climg/625d46d00921402215790545.jpg

https://img1.sycdn.imooc.com//climg/625d46e609a4fed316390619.jpg

https://img1.sycdn.imooc.com//climg/625d46f609e7a9b216000669.jpg


正在回答 回答被采纳积分+1

登陆购买课程后可参与讨论,去登陆

1回答
好帮手慕慕子 2022-04-19 09:58:40

同学你好,格式有问题,如下:

1、success属性需要使用双引号包裹,如下:

https://img1.sycdn.imooc.com//climg/625e15370926d90010620425.jpg

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

https://img1.sycdn.imooc.com//climg/625e168c0917d8cf09300375.jpg

另外,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 星
请稍等 ...
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号

在线咨询

领取优惠

免费试听

领取大纲

扫描二维码,添加
你的专属老师