Sunday 15 March 2015

iOS, AFNetworking - "Clear" NSSTring with JSON response -


I am using AFNetworking to get JSON from the server, but the response is just a bit more just JSON, so I can not parse it:

  array (11) {["something"] = & gt; String (4) "none" (...)} [[], {"JSONDataNow": (...)}]   

Is it possible that you have other data Replace JSON again string?

The server is not returning JSON. It is returning a JSON-like string or the server returns JSON Fix to write or write your own custom parser based on custom rules used by the server.

It is not a good idea to try a non-JSON string in JSON to write a preprocessor. You will have all the difficulties in writing a custom parser, which does not have any of the benefits of owning your own syntax.

No comments:

Post a Comment