compat with old versions of json.h