Smolgui
Immediate gui library based on SFML
Loading...
Searching...
No Matches
LoadJson.h
Go to the documentation of this file.
1#pragma once
2
3#include <iomanip>
4#include <fstream>
5#include <nlohmann/json.hpp>
6
7// for readability
8using json = nlohmann::json;
9
10namespace sgui
11{
15void saveInFile (const json& out, const std::string& file, const bool compact = false);
16
20json loadFromFile (const std::string& file);
21
22} // namespace sgui
nlohmann::json json
Definition LoadJson.h:8
Definition Interpolation.h:16
void saveInFile(const json &out, const std::string &file, const bool compact)
save json to file
Definition LoadJson.cpp:6
json loadFromFile(const std::string &file)
load json from file
Definition LoadJson.cpp:21