Skip to content

Latest commit

 

History

History
26 lines (23 loc) · 1.33 KB

README.md

File metadata and controls

26 lines (23 loc) · 1.33 KB

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