EnjoySR / ESJsonFormat-Xcode

将JSON格式化输出为模型的属性
MIT License
2.13k stars 350 forks source link

JSON外层是数组的时候 创建对象时生成了(null)的对象 #21

Closed SoulArsenic closed 9 years ago

SoulArsenic commented 9 years ago

下面是我用的JSON

[
  {
    "id": 1,
    "uid": 1,
    "scene_id": 1,
    "single_scene_img_id": "",
    "background": "",
    "link": "",
    "effect": "",
    "app_id": 0,
    "app_attr_name": "",
    "app_param": "",
    "is_del": "N",
    "create_at": 1437559251,
    "elements": [
      {
        "id": 3872,
        "scene_id": 195,
        "scene_detail_id": 979,
        "content": "",
        "type": "img",
        "properties": "",
        "create_at": 1437618000
      }
    ],
    "page": 2,
    "num": 1
  }
]

额 外层是数组的时候会有问题。。。 我把数据手动解了。

EnjoySR commented 9 years ago

修复完了我会关闭掉这个issues,谢谢你的关注。

EnjoySR commented 9 years ago

你好,你更新插件试试,嘿嘿,如果有问题继续Issue我~

SoulArsenic commented 9 years ago

OK THX