Вопрос

Is there any convertor that used to convert JSON web-service to Objective C code like Sudzc that use SOAP protocol.

Это было полезно?

Решение

NSDictionary *dictionary = [NSJSONSerialization JSONObjectWithData:data options:kNilOptions error:&error];

Also if you want to have more detail.... check these

  1. Convert the JSON string into an NSDictionary using tools like yajl, JSONKit or iOS5 JSON

  2. Use a tool like Jastor to convert this NSDictionary to a real Objective-C class with typed properties, nested properties, arrays etc.

  3. Apple documentation.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top