json_last_error_msg support for older php versions

as described in the  commit message: php <5.5.0 get an errormessage when trying to use this plugin