Putting JSON into an Array

前端 未结 3 1979
花落未央
花落未央 2020-12-12 05:59

I\'m a noob when it comes to requests and JSON. Inside my app I send to the server and get back stuff so I can use it of course. I tried looking up different things but none

3条回答
  •  無奈伤痛
    2020-12-12 06:00

    If that's what you're getting back it's not JSON I'm afraid. It does look like Javascript in a way but it should be more like

    [
      {
         "id" : 38,
         "name" : "St. Martin Hall"
      },
      {
         "id" : 39,
         "name" : "Assumptions Commons"
      }
    ]
    

提交回复
热议问题