Tool to convert JSON to C structure?

I'm just curious if someone has already created a tool that will take a given JSON string and write code for an identical structure in C along with the parser code specific to that structure.

I'm going to do this myself using JSON-C, but I thought I'd ask first.

+6
json c metaprogramming
source share
3 answers

I think protobuf is my best bet. The guy on the NodeJS list led me to this.

0
source share

If you want to use JSON-RPC, I recommend using this method . If this does not work for you, I would use the JSON-C library.

0
source share

I found this thread on google when I was looking for this tool myself.

I did not find anything, so I created it myself: https://github.com/marel-keytech/jsoncc

I hope this helps other users find this thread on Google .;)

0
source share

All Articles