Skip to content
/ Mason Public

A simple JSON handling wrapper in Swift, making it available to handle JSON like JavaScript.

License

Notifications You must be signed in to change notification settings

monsoir/Mason

Repository files navigation

Mason

A simple JSON handle wrapper in Swift, making it available to handle JSON like JavaScript.

For example:

JSON.stringify in JavaScript, in Mason it works as

let result = Mason.stringify(model)

JSON.parse in JavaScript, in Mason it works as

let result = Mason.parse(jsonData, type: TestModel.self)

and more...

Use it with Cocoapods

Add the following line to Podfile

pod 'Mason', :git => 'https://github.com/Monsoir/Mason.git', :tag => "2.2.0"

Use it with Swift Package Manager

.package(url: "https://github.com/Monsoir/Mason.git", from: "2.0.0")

About

A simple JSON handling wrapper in Swift, making it available to handle JSON like JavaScript.

Resources

License

Stars

Watchers

Forks

Packages

No packages published