将Json格式化输出为模型的属性
####怎么安装:
方式1:下载-Xcode打开-Command+B-重启Xcode
方式2:下载-解压plugin文件夹中zip到~/Library/Application Support/Developer/Shared/Xcode/Plug-ins
-重启Xcode
####怎么使用:
Window-ESJsonFormat-输入Json-Enter OR 快捷键(Control+Shift+J)-输入Json-Enter
####功能说明:
-0.1
- 通过Json字符串生成对应属性
- 通过文件写入的方式生成到.m文件
- 支持输入嵌套模型名称
注:目前只支持Objective-C
####Alcatraz
- 支持 Alcatraz ,请搜索
ESJsonFormat
####效果: 简单模型
复杂模型
图中的Json格式
{
"name": "王五",
"gender": "man",
"age": 15,
"height": "140cm",
}
{
"name": "王五",
"gender": "man",
"age": 15,
"height": "140cm",
"addr": {
"province": "fujian",
"city": "quanzhou",
"code": "300000"
},
"hobby": [
{
"name": "billiards",
"code": "1"
},
{
"name": "computerGame",
"code": "2"
}
]
}
####计划实现:
- 支持Swift
- 将嵌套模型生成文件
- 生成MJExtension中集合对应的Class的方法
Thanks:GsonFormat、VVDocumenter-Xcode