Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code generator? #494

Closed
fusionJose opened this issue Jun 26, 2019 · 1 comment
Closed

Code generator? #494

fusionJose opened this issue Jun 26, 2019 · 1 comment

Comments

@fusionJose
Copy link

Is there any tool which can generate the c code, from a JSON schema or file?. I mean something which writes all the json_objects and all of the types to serialize from a shema or a json file, and is prepared to work with this library. Thanks

@hawicz
Copy link
Member

hawicz commented Jun 30, 2019

From a schema? Not that I know of, however if you have a json file you can parse it with the json_tokener_parse_ex() function or json_object_from_file

Of course, it's up to you to write the code to do something with the parsed objects.

@hawicz hawicz closed this as completed Jun 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants