Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/meniny/jsonify
♨️A delightful JSON parsing framework.
https://github.com/meniny/jsonify
ios json mac macos macosx osx parsing tvos watchos
Last synced: 16 days ago
JSON representation
♨️A delightful JSON parsing framework.
- Host: GitHub
- URL: https://github.com/meniny/jsonify
- Owner: Meniny
- License: mit
- Created: 2017-04-23T07:45:17.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-06T07:59:48.000Z (over 5 years ago)
- Last Synced: 2024-10-13T14:26:34.887Z (about 1 month ago)
- Topics: ios, json, mac, macos, macosx, osx, parsing, tvos, watchos
- Language: Swift
- Homepage: https://meniny.cn/Jsonify/
- Size: 1.47 MB
- Stars: 43
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```ruby
pod 'Jsonify'
```#### Manually: Framework
First, excute this:
```bash
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
```swift
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)")
}
```