Parse JSON response with Swift 3

前端 未结 4 585
我寻月下人不归
我寻月下人不归 2021-01-02 01:08

I have JSON looking like this:

{\"posts\":
    [
    {
    \"id\":\"1\",\"title\":\"title 1\"
    },
    {
    \"id\":\"2\",\"title\":\"title 2\"
    },
             


        
4条回答
  •  抹茶落季
    2021-01-02 01:23

    Because your data structure of test json should be "[String: AnyObject]". The json key "posts" value is Array type.

提交回复
热议问题