♨️A delightful JSON parsing framework.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Jsonify
JsonifyDemo
Logo
.gitignore
.swift-version
Jsonify.podspec
LICENSE
README.md
_config.yml

README.md

Jsonify
Version Author Build Passing Swift
Platforms MIT
Cocoapods Carthage SPM

Introduction

What's this?

Jsonify is a delightful JSON parsing framework for iOS/macOS/watchOS/tvOS platforms written in Swift.

Requirements

  • iOS 8.0+
  • macOS 10.10+
  • watchOS 2.0+
  • tvOS 9.0+
  • Xcode 8 with Swift 3

Installation

CocoaPods

pod 'Jsonify'

Manually: Framework

First, excute this:

git submodule add https://github.com/Meniny/Jsonify.git

then:

  • Drag Jsonify/Jsonify/Jsonify.xcodeproj into your project
  • Go to PROJECT->TARGETS->[YOUR_TARGET_NAME]->General->Embedded Binaries
  • Click
  • Select Jsonify.frameWork, click Add

Manually: Source Files

Copy all files in the ./Jsonify/Jsonify directory into your project.

Contribution

You are welcome to fork and submit pull requests.

License

Jsonify is open-sourced software, licensed under the MIT license.

Sample

let jsonString = "[ { \"id\": 1, \"name\": \"Meniny\", }, ]"
let array = Jsonify(string: jsonString)
for i in array.arrayValue {
    let id = i["id"].intValue
    let name = i["name"].stringValue
    print("id=\(id)\nname=\(name)")
}