JSON_Loader now handles key fetching safely (if we want)

This commit is contained in:
Chris Punches
2017-06-09 00:41:06 -04:00
parent ad7db62b8a
commit 3c52f94bfa
4 changed files with 102 additions and 121 deletions

View File

@@ -28,5 +28,9 @@ public:
// return as a JSONCPP serialized object
Json::Value as_serialized();
std::string as_string();
// safely handle key retrieval (if we want it to be safe)
// next iter should be:
int JSON_Loader::get_key( Json::Value &input, std::string key, bool verbose, bool safety);
};
#endif //FTESTS_JLOADER_H