You need to sign in to do that
Don't have an account?
Kam.ax1015
json utility classes
Hello,
To parse and construct json within the server side REST controllers, are there any json utility classes? Something like flex json in Java world..
Thanks,
Kam
You want to parse JSON in Apex, right? See the following blog post, it will probably help:
http://blog.jeffdouglas.com/2010/01/06/calling-a-json-rest-web-service-with-apex/
Watch out for the number of statements governor limit when using this JSON library.
All Answers
Try the following. There are plenty more, but I have had success with these
Ruby
HTTParty - http://httparty.rubyforge.org/
Java
JSONLib - http://json-lib.sourceforge.net/ or Gson - http://code.google.com/p/google-gson/
Objective C
JBSon - https://github.com/stig/json-framework/
You want to parse JSON in Apex, right? See the following blog post, it will probably help:
http://blog.jeffdouglas.com/2010/01/06/calling-a-json-rest-web-service-with-apex/
Watch out for the number of statements governor limit when using this JSON library.
Yes. Thanks a lot.