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: 3 months ago
JSON representation

Coolie(苦力) helps you to create models (& their constructors) from a JSON file.

Lists

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