Based IDL generate serial code:
- json to struct
 - struct to json
 
This project is a IDL serial generator for c. We use flex && bison to scan and parse files and generate json to struct and struct to json code.
- Primitive types
 - Structs
 - String and string with template
 - Sequence template
 - Enums.
 - Part of Annotations
 - Unions
 - Enums
 - Bitmasks
 - Typedefs
 - Modules
 - Bitsets
 - Constants
 
- Get the from github
 
git clone https://github.com/nanomq/idl-serial.git- Build project
 
cd idl-serial && mkdir build
cd build && cmake ..
make- Generate code
 
./idl-serial-code-gen ../test.idlCode will generate to idl_convert.c.