A quick note that I hope Google picks up concerning php's json\last\error function. I was trying to debug a json string I was decoding with json\decode, but was getting NULL. When I tried to use the json\last\error(), a fatal undefined function error was returned. The reason: json\last\error doesn't exist in php versions < 5.3. Ah, version numbers! So, check your php version if the function is undefined. Simple, yet a detail easily overlooked.