JSONSerialization with Swift 3

后端 未结 2 478
温柔的废话
温柔的废话 2020-12-17 21:19

I am having a bear of a time understanding simple JSON serialization principles with Swift 3. Can I please get some help with decoding JSON from a website into an array so I

2条回答
  •  旧巷少年郎
    2020-12-17 21:42

    Thank you. The information from OOPer helped. But, what really helped was reformatting my json:

    { "teams": [ { "a": 1, "b": 2, "c": "red" }, { "a": 1, "b": 2, "c": "yellow" }, { "a": 1, "b": 2, "c": "green" } ] }
    

提交回复
热议问题