Reputation: 11062
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
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