Add Lua function to load a JSON file

This commit is contained in:
Alexander Bock
2024-02-10 10:18:57 +01:00
parent 5e9af1bc13
commit fa1847d235
5 changed files with 84 additions and 2 deletions

View File

@@ -75,6 +75,11 @@ std::string formatJson(T value);
*/
void sortJson(nlohmann::json& json, const std::string& key);
/**
* Converts the provided JSON object into its corresponding Dictionary format.
*/
ghoul::Dictionary jsonToDictionary(const nlohmann::json& json);
} // namespace openspace
#include "json_helper.inl"