PHP's json_decode function works well, unless, of course, you get the JSON from a socket server and forget to trim it. This kicked my butt for a while yesterday.
Another important one to remember is var_dump (which kept showing up as NULL with json_decode before I started trimming the input).
Wednesday, April 28, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment