Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法用单引号解析 JSON
{'lat': 0, 'lng': 0}
与JSONModel?
JSONModel
你可以替换错误的字符:
NSString *json = [yourJSONString stringByReplacingOccurrencesOfString:@"'" withString:@"\""];
然后您可以将其作为正确的 JSON 处理 :-)
最后得到@CouchDeveloper 的建议。