Vulkan Schnee 0.0.1
High-performance rendering engine
Loading...
Searching...
No Matches
JsonHandler.cpp
Go to the documentation of this file.
3#include <fstream>
4#include <json.hpp>
5
6namespace EngineCore {
7
8 using json = nlohmann::json;
9
10 nlohmann::json JsonHandler::loadJson(std::filesystem::path path) {
11 std::ifstream fileInputStream = FileHandler::readFileAsStream(path);
12 return json::parse(fileInputStream);
13 }
14}
static nlohmann::json loadJson(std::filesystem::path path)
static std::ifstream readFileAsStream(const std::filesystem::path &path)
Log category system implementation.
nlohmann::json json