json_last_error_msg requires a php version >= 5.5.0 with this fix at least
5.3.0 is supported