json_last_error_msg requires a php version >= 5.5.0 with this fix at least
5.3.0 is supported
Merge pull request #1 from beaucarigan/master

json_last_error_msg support for older php versions