PHP's json_last_error

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.