mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
28 lines
619 B
C++
28 lines
619 B
C++
#ifndef CODERS_JSON_HPP_
|
|
#define CODERS_JSON_HPP_
|
|
|
|
#include "binary_json.hpp"
|
|
|
|
#include "../data/dynamic.hpp"
|
|
#include "../typedefs.hpp"
|
|
|
|
#include <string>
|
|
|
|
namespace json {
|
|
dynamic::Map_sptr parse(const std::string& filename, const std::string& source);
|
|
dynamic::Map_sptr parse(const std::string& source);
|
|
|
|
std::string stringify(
|
|
const dynamic::Map* obj,
|
|
bool nice,
|
|
const std::string& indent
|
|
);
|
|
|
|
std::string stringify(
|
|
const dynamic::Value& value,
|
|
bool nice,
|
|
const std::string& indent
|
|
);
|
|
}
|
|
|
|
#endif // CODERS_JSON_HPP_
|