mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
23 lines
570 B
C++
23 lines
570 B
C++
#ifndef CODERS_JSON_HPP_
|
|
#define CODERS_JSON_HPP_
|
|
|
|
#include <string>
|
|
|
|
#include <data/dynamic.hpp>
|
|
#include <typedefs.hpp>
|
|
#include "binary_json.hpp"
|
|
|
|
namespace json {
|
|
dynamic::Map_sptr parse(std::string_view filename, std::string_view source);
|
|
dynamic::Map_sptr parse(std::string_view 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_
|