8#ifndef GALAXY_SCRIPTING_JSON_HPP_
9#define GALAXY_SCRIPTING_JSON_HPP_
11#include <nlohmann/json_fwd.hpp>
25 nlohmann::json
read(
const std::string& file);
35 nlohmann::json
read_raw(
const std::string& json);
46 bool write(
const std::string& file,
const nlohmann::json& json);
56 std::string
dump(
const nlohmann::json& json);
nlohmann::json read_raw(const std::string &json)
Read raw json string.
bool write(const std::string &file, const nlohmann::json &json)
Write json to vfs.
std::string dump(const nlohmann::json &json)
Dump json to string.
nlohmann::json read(const std::string &file)
Read a json file in the vfs.