Create to/from JSON bindings for C structs