Amit Pal
Amit Pal

Reputation: 11062

How to generate model objects from Json Schema / Json in xcode (swift)?

I have generated Json(s) for each java class using Gson library. Some of them are in hierarchy nature while others are completely independent. I am looking for a way to convert these Json to plain object (getter and setter methods) in swift. Is there any way to do it? For Java we can convert them using JsonSchema2Pojo

Upvotes: 9

Views: 5757

Answers (1)

ashif-ismail
ashif-ismail

Reputation: 1076

try JSON4SWIFT.

I feel,thats the equivalent for jsonschema2pojo in java

Updated :

Try QuickType,It even has a plugin for Xcode

Upvotes: 5

Related Questions