Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nixzhu/coolie
Coolie(苦力) helps you to create models (& their constructors) from a JSON file.
https://github.com/nixzhu/coolie
class generator json json-parser model models struct
Last synced: about 7 hours ago
JSON representation
Coolie(苦力) helps you to create models (& their constructors) from a JSON file.
- Host: GitHub
- URL: https://github.com/nixzhu/coolie
- Owner: nixzhu
- License: mit
- Created: 2016-01-24T05:18:33.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-12T09:48:10.000Z (over 7 years ago)
- Last Synced: 2025-01-14T03:07:33.808Z (7 days ago)
- Topics: class, generator, json, json-parser, model, models, struct
- Language: Swift
- Homepage:
- Size: 145 KB
- Stars: 505
- Watchers: 13
- Forks: 33
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Coolie([苦力](https://zh.wikipedia.org/wiki/%E8%8B%A6%E5%8A%9B))
Coolie parse a JSON file to generate models (& their constructors).
苦力有很强的类型推断能力,除了能识别 URL 或常见 Date 类型,还能自动推断数组类型(并进行类型合并),你可从下面的例子看出细节。
[Working with JSON in Swift](https://developer.apple.com/swift/blog/?id=37)
中文介绍:[制作一个苦力](https://github.com/nixzhu/dev-blog/blob/master/2016-06-29-coolie.md)
## Have a Try
- [coolie-cli](https://github.com/nixzhu/coolie-cli)
## Baby
Coolie has a [Baby](https://github.com/nixzhu/Baby) now.
## License
MIT