binary json format introduced + specification

This commit is contained in:
MihailRis
2024-01-16 19:05:27 +03:00
parent faa581a928
commit 3837cdcf95
13 changed files with 649 additions and 326 deletions
+3 -1
View File
@@ -16,7 +16,9 @@ namespace json {
class JArray;
class Value;
extern std::string stringify(JObject* obj, bool nice, std::string indent);
extern std::string stringify(const JObject* obj, bool nice, const std::string& indent);
extern std::vector<ubyte> to_binary(const JObject* obj);
extern JObject* from_binary(const ubyte* src, size_t size);
enum class valtype {
object, array, number, integer, string, boolean