#include "nrp_general_library/config/cmake_constants.h"#include "nrp_general_library/utils/nrp_exceptions.h"#include "nlohmann/json-schema.hpp"#include <fstream>#include "iostream"Go to the source code of this file.
Namespaces | |
| json_utils | |
Typedefs | |
| using | jsonSharedPtr = std::shared_ptr< nlohmann::json > |
| using | jsonConstSharedPtr = std::shared_ptr< const nlohmann::json > |
Functions | |
| nlohmann::json | json_utils::parseJSONFile (const std::string &fileName) |
| Parse a JSON File and return it's values. More... | |
| void | json_utils::jsonSchemaLoader (const json_uri &uri, json &schema) |
| Loads schema from json file given its uri. To be passed to a nlohmann::json_schema::json_validator constructor. More... | |
| void | json_utils::validateJson (nlohmann::json &instance, std::string schema_path, bool addPatch=true) |
| Validates a json object using a given json schema. More... | |
| using jsonConstSharedPtr = std::shared_ptr<const nlohmann::json> |
| using jsonSharedPtr = std::shared_ptr<nlohmann::json> |