Removed json_last_error_msg function which is available only in 5.5