2

I know that there's a bunch of question like this already, but I would like to know what is currently the best JSON parser out there that is easy to use with objective-C? I also know that apple is pretty strict with accepting codes with third-party code (like the JSON parser), so I want to know what do they accept?

aherlambang
  • 14,290
  • 50
  • 150
  • 253

3 Answers3

4

I use this: http://code.google.com/p/json-framework/

I think Apple has accepted so many apps that uses this framework.

BTW, I think third party codes are OK as long as the license says so. Usually if it's BSD or MIT license you're good to go. The framework that I linked to uses BSD.

Enrico Susatyo
  • 19,372
  • 18
  • 95
  • 156
  • Google says: 403. That’s an error. Your client does not have permission to get URL /p/json-framework/ from this server. That’s all we know. Why? I'm in China mainland btw. – Evi Song Apr 05 '12 at 14:51
  • I got that too. I don't know why. Has been working for me up until now. This seems to be a fork of that project: https://github.com/stig/json-framework – Enrico Susatyo Apr 06 '12 at 04:27
2

What's the criteria for "best"? If "best" means "fastest", then I think JSONKit qualifies (full disclosure: I'm the author of JSONKit). As far as I know, it is strictly RFC 4627 (the JSON RFC) conforming, and if it isn't, file a bug. :)

Community
  • 1
  • 1
johne
  • 6,760
  • 2
  • 24
  • 25
1

i've used yajl-objc successfully. https://github.com/gabriel/yajl-objc

Joseph Le Brech
  • 6,541
  • 11
  • 49
  • 84