Update JSON error msg
Added the JSON error message with json_last_error_msg() PHP5.5+ function.