Skip to content

aotian16/SwiftJsonToObj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SwiftJsonToObj

a xcode plugin for json to object write in swift

image

click swiftjson segment if you use SwiftJson

SwiftJson demo

        let json = JsonParser.p(jsonStr)
        let obj = TopObj(json: json)
        
        if obj.isInitOk {
            print(obj.str)
            print(obj.int)
            print(obj.float)
            print(obj.bool)
            print(obj.arr)
            print(obj.obj!.int1)
            print(obj.obj!.float1)
            print(obj.obj!.bool1)
            print(obj.obj!.str1)
            print(obj.obj!.arr1)
            print(obj.obj!.obj1?.obj2?.objK)
        }

open window from

Edit -> jsonToObj

see also

SwiftJson

License

MIT

About

a xcode plugin for json to object write in swift

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages