Skip to content

A JSON Serializer/Deserializer for Swift 3+ that just works

Notifications You must be signed in to change notification settings

tburnam/whmJSON

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

whmJSON

I wrote this library back when I used to think that md files only took HTML (see this readme's source) and had no idea that CocoaPods existed. CocoaPods very much existed and markdown is like this whole thing, so please, if you are in search of a JSON serializer, visit: SwiftyJSON

whmJSON is an open source JSON library for Swift 3+. It currently supports serialization/deserialization for any object with primitive properties. Full support coming soon.

Install Instructions
Drag the whmJSON.swift file to your XCode project.

Usage Instructions
To serialize an object, just call whmJSON.Serialize(object: yourObject)
This will return a data object that you can cast to a string or send directly to an HTTP post.

To deserialize into an object, just call var deserializedObjects: [myObjectType] = whmJSON.Deserialize(data: yourData)
This will return a list of your objects from the JSON (if you have a single JSON string, still pass it as a list with 1 element)

Under active development
Please feel free to help

About

A JSON Serializer/Deserializer for Swift 3+ that just works

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages