32#ifndef MODULES_CMR_MODULE_RJSONUTILS_H_
33#define MODULES_CMR_MODULE_RJSONUTILS_H_
37#include "nlohmann/json.hpp"
44 static std::string
typeName(
unsigned int t);
46 nlohmann::json
get_as_json(
const std::string &url)
const;
49 const nlohmann::json&
qc_get_object(
const std::string &key,
const nlohmann::json& json_obj)
const;
50 const nlohmann::json&
qc_get_array(
const std::string &key,
const nlohmann::json& json_obj)
const;
51 std::string
get_str_if_present(
const std::string &key,
const nlohmann::json& json_obj)
const;
52 double qc_double(
const std::string &key,
const nlohmann::json &json_obj)
const;
53 bool qc_boolean(
const std::string &key,
const nlohmann::json &json_obj)
const;
54 unsigned long int qc_integer(
const std::string &key,
const nlohmann::json &json_obj)
const;
55 std::string
probe_json(
const nlohmann::json &j)
const;
bool qc_boolean(const std::string &key, const nlohmann::json &json_obj) const
static std::string typeName(unsigned int t)
std::string get_str_if_present(const std::string &key, const nlohmann::json &json_obj) const
nlohmann::json get_as_json(const std::string &url) const
double qc_double(const std::string &key, const nlohmann::json &json_obj) const
std::string probe_json(const nlohmann::json &j) const
unsigned long int qc_integer(const std::string &key, const nlohmann::json &json_obj) const
const nlohmann::json & qc_get_array(const std::string &key, const nlohmann::json &json_obj) const
const nlohmann::json & qc_get_object(const std::string &key, const nlohmann::json &json_obj) const