voxelcore/src/coders/json.hpp
InfiniteCoder 8f9c7eb7ff data/
2024-08-05 23:59:42 +03:00

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_