Latest 1.0.0
Homepage https://github.com/yuhongli1989/HLJson
License MIT
Platforms ios 8.0
Authors

创建JSON 可以用符合json格式的data创建
比如这个json
{
"name":"甲",
"age":100
}

let str = """
{
  "name":"甲",
  "age":100
}
"""
let data = str.data(using: .utf8)!
let json = JSON(data)
assert((json["name"]=="甲")&&(json["name"]==json.name))

//也可以通过json得到json字符串
let stringJSON = json.stringJson

可以通过Dictionary Array 初始化 JSON

Latest podspec

{
    "name": "HLJson",
    "version": "1.0.0",
    "summary": "JSONu6570u636eu5904u7406",
    "swift_version": "4.2",
    "description": "JSON u7ed3u6784u4f53nu53efu4ee5u4ecejsonu5b57u7b26u4e32u521bu5efaJSONu7ed3u6784u4f53njson.key u83b7u53d6u6570u636ennumber u7c7bu578bu652fu6301 bool double float int array dictionary  u8f6cu6362",
    "homepage": "https://github.com/yuhongli1989/HLJson",
    "platforms": {
        "ios": "8.0"
    },
    "license": "MIT",
    "authors": {
        "yuhongli": "[email protected]"
    },
    "source": {
        "git": "https://github.com/yuhongli1989/HLJson.git",
        "tag": "1.0.0"
    },
    "source_files": "HLJsonDemo/HLJson/*.{swift}"
}

Pin It on Pinterest

Share This