Latest 0.1.0
License MIT
Platforms ios 8.0

[![CI Status]( Mortazavi/SimpleJSON.svg?style=flat)]( Mortazavi/SimpleJSON)


To run the example project, clone the repo, and run pod install from the Example directory first.



SimpleJSON is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "SimpleJSON"


Peyman Mortazavi, [email protected]


SimpleJSON is available under the MIT license. See the LICENSE file for more info.

Latest podspec

    "name": "SimpleJSON",
    "version": "0.1.0",
    "summary": "A very easy and lightweight JSON library for Swift.",
    "description": "Heavily inspired by JSONHelper, I really liked their awesome library but therenwere a few things that I didn't like in their implementation which inspired mento make this library.n1. You don't always get the perfect JSON, sometimes you should gracefully fail n   to deserialize a JSON string to a type which is why Deserializable has ann   optional initializer, you can return nil if the given dictionary does not n   provide enough information to initialize.nn2. To make it easiert to understand, think of operator --> as Swift operator 'as?'.n   Same way as ```var myNumber = someObject as? myNumber``` you can usen   ```var numbers = "[1, 2, 3, 4] as [Int].self" you just have to feed a type ton   --> operator. Left hand side can be string, data or an object and right handn   side is a type that you want to TRY to read as. My suggestion best practice isn   to use if let and guard let. for example:n   if let numbers = "[1, 2, 3, 4] as? [Int].self { print(numbers) }"nn3. Dates, URLs and other types are not supported. My philosophy is that these typesn   are formatted differently API to API so I recommend casting them manually.n   I plan to include custom deserializer so you can install date deserializer based onn   your own need. This deserializer is going to be faster and easier.",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "Peyman Mortazavi": "[email protected]"
    "source": {
        "git": "",
        "tag": "0.1.0"
    "platforms": {
        "ios": "8.0"
    "source_files": "SimpleJSON/Classes/**/*"

Pin It on Pinterest

Share This