6#ifndef _GVM_UTIL_JSON_H
7#define _GVM_UTIL_JSON_H
11#include <cjson/cJSON.h>
double gvm_json_obj_double(cJSON *obj, const gchar *key)
Get a double field from a JSON object.
int gvm_json_obj_check_int(cJSON *obj, const gchar *key, int *val)
Get an int field from a JSON object.
gchar * gvm_json_string_escape(const char *string, gboolean single_quote)
Escapes a string according to the JSON or JSONPath standard.
int gvm_json_obj_int(cJSON *obj, const gchar *key)
Get an int field from a JSON object.
gchar * gvm_json_obj_str(cJSON *obj, const gchar *key)
Get a string field from a JSON object.
int gvm_json_obj_check_str(cJSON *obj, const gchar *key, gchar **val)
Get a string field from a JSON object.