How to parse JSON with single quotes with JSONModel?

883 Views Asked by At

Is there any way to parse JSON with single quotes like

{'lat': 0, 'lng': 0} 

with JSONModel?

2

There are 2 best solutions below

0
On BEST ANSWER

Ended up with @CouchDeveloper advice.

3
On

you could replace the wrong chars:

NSString *json = [yourJSONString stringByReplacingOccurrencesOfString:@"'" withString:@"\""];

and then you can handle it as corretc JSON :-)