NRP Core  1.4.1
json_schema_utils.cpp File Reference

Namespaces

 json_utils
 

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...