You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This project demonstrates an automatic conversion system between C++ structures and JSON using **Boost.JSON** and **Boost.Describe**.
7
+
By defining the "field sequence" only once, it can automatically generate both the struct definition and `BOOST_DESCRIBE_STRUCT` declarations, reducing redundancy and improving maintainability.
8
+
9
+
## Features
10
+
-**Automatic Struct Description**
11
+
Uses `AutoDescribe.hpp` to generate struct definitions and `BOOST_DESCRIBE_STRUCT` at the same time.
12
+
13
+
-**JSON Serialization / Deserialization**
14
+
`JsonCodec.hpp` provides easy-to-use functions to convert described structs to and from JSON using Boost.JSON.
15
+
16
+
-**Pretty Printing**
17
+
Built-in pretty printer for better readability.
18
+
19
+
-**File I/O**
20
+
Save and load JSON data directly to and from files.
21
+
22
+
-**Clang-based Code Generation**
23
+
Python tools (`gen_fields.py`, `gen_all_structs.py`) use libclang to scan headers and generate `BOOST_DESCRIBE_STRUCT` automatically.
0 commit comments