1#ifndef SAFEHERON_SGX_TRUSTED_JSON_H
2#define SAFEHERON_SGX_TRUSTED_JSON_H
6#include "nlohmann/json_fwd.hpp"
24 std::string& err_msg);
34bool fetch_json_int_node(
const nlohmann::json& root,
const std::string& node_name,
int& value, std::string& err_msg);
44bool fetch_json_bool_node(
const nlohmann::json& root,
const std::string& node_name,
bool& value, std::string& err_msg);
54bool fetch_json_long_node(
const nlohmann::json& root,
const std::string& node_name,
long& value, std::string& err_msg);
65 std::string& err_msg);
76 std::string& err_msg);
bool fetch_json_bool_node(const nlohmann::json &root, const std::string &node_name, bool &value, std::string &err_msg)
Extract a boolean value from a JSON object.
bool fetch_json_object_node(const nlohmann::json &root, const std::string &node_name, nlohmann::json &value, std::string &err_msg)
Extract a json object from a JSON object.
bool fetch_json_int_node(const nlohmann::json &root, const std::string &node_name, int &value, std::string &err_msg)
Extract an integer from a JSON object.
bool fetch_json_array_node(const nlohmann::json &root, const std::string &node_name, nlohmann::json &value, std::string &err_msg)
Extract a json array from a JSON object.
bool fetch_json_string_node(const nlohmann::json &root, const std::string &node_name, std::string &value, std::string &err_msg)
Extract a string from a JSON object.
bool fetch_json_long_node(const nlohmann::json &root, const std::string &node_name, long &value, std::string &err_msg)
Extract a long integer from a JSON object.
Definition ssgx_attestation_t.h:6