Hi stack overflow people
i am writing an iphone app thats connects to a web service, through REST with JSON. I would like to generate my model classes in objective c from a json schema provided by my web service, a bit like i d do with wsdl2objc with asoap, xml and wsdl combination.
It looks like there s not much out there on this subject
i tried something called jsonschema2objc.rb from http://code.google.com/p/bkjsonschema/ but it s giving me errors even on the simplest json schema, the one found here: http://en.wikipedia.org/wiki/JSON#Schema
i get this error:
Using temporary file /var/folders/rN/rNw33pkyHVeNG+-IesdU+k+++TI/-Tmp-/jsonschema2objc.8WRkBSQo
!!! Object definition at index Product has unknown type
so here are my 2 questions:
- do you guys know any good tool to acheive jsonchema => objective c classes ?
- do you know what this error means in my ./jsonschema2objc.rb
Thx!