A tool to convert JSON to C struct? [closed]
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this questionI'm just wondering if anyone has already created a tool that will take a given JSON string and write the code for an identical struct in C along with the parser code specific to that struct.
I'm about to do this myself using JSON-C, but I thought I'd ask first.
I think protobuf
is my best bet. A guy on the NodeJS list led me on to this.
- protobuf-c
- node-protobuf
- protobuf-js
精彩评论