matthewcheok / JSONCodable

Hassle-free JSON encoding and decoding in Swift
MIT License
602 stars 66 forks source link

Is it possible to decode an Array? #85

Closed pronebird closed 6 years ago

pronebird commented 6 years ago

The server returns an array of records, i.e [record1, record2].. I don't quite understand how to encode/decode an array of records. Could you give me a pointer?

pronebird commented 6 years ago

Entirely forgot that try [T](JSONString: jsonString) works fine :)