Which is better to parse JSON/XML on iPhone, so that i can interact with web apps. Also which is the fastest and most efficient parser out there
A:
(See other comment for AppStore apps.)
JSON: For Jailbroken platforms you can use Apple's private framework JSON.framework
. (Isn't it quite sad that Apple often needs developers to reinvent the wheels?)
XML: NSXMLParser
(which is more ObjC-friendly) or libxml2
(which has higher performance).
KennyTM
2010-01-16 06:06:26
+2
A:
TouchJSON is easier for the developer to use than XML parsing, for web services with lots of little files sent back and forth performance does not matter much because the bottleneck will be the network (unless for some reason you are sending very large data structures around).
Kendall Helmstetter Gelner
2010-01-16 07:23:59