JSON-to-Zig

Convert JSON to Zig struct

This tool instantly converts JSON into a Zig type definition. Paste a JSON structure on the left and the equivalent Zig type will be generated to the right, which you can paste into your program. The script has to make some assumptions, so double-check the output!

For an example, try converting JSON from the SmartyStreets API or the GitHub API.

JSON-to-Go © 2015 Matt Holt (@mholt6) • View JSON-to-Go on GitHubView JSON-to-Zig on GitHubDark mode

JSON Zig Copy to clipboard