aboutsummaryrefslogtreecommitdiff
path: root/libbutl/json/event.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-02-28 08:57:02 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-03-02 13:58:55 +0200
commit152ea943395822f55591eadaf8e0f5aac263db5e (patch)
tree268a9dae37704b2398876dad44a5095ba6d6f750 /libbutl/json/event.hxx
parent0e5d575feceea4feac4b33e85626719e14f762a1 (diff)
Add JSON serializer (copy of libstud-json)
Diffstat (limited to 'libbutl/json/event.hxx')
-rw-r--r--libbutl/json/event.hxx27
1 files changed, 27 insertions, 0 deletions
diff --git a/libbutl/json/event.hxx b/libbutl/json/event.hxx
new file mode 100644
index 0000000..77185cc
--- /dev/null
+++ b/libbutl/json/event.hxx
@@ -0,0 +1,27 @@
+#pragma once
+
+#include <cstddef>
+#include <cstdint>
+
+namespace butl
+{
+ namespace json
+ {
+ // Parsing/serialization event.
+ //
+ enum class event: std::uint8_t
+ {
+ begin_object = 1,
+ end_object,
+ begin_array,
+ end_array,
+ name,
+ string,
+ number,
+ boolean,
+ null
+ };
+
+ constexpr std::size_t event_count = 9;
+ }
+}