Input Go structs to generate example JSON that follows their json tags!
input
→
result
Convert Go Structs to JSON!
Input Go structs to generate example JSON that follows their json tags!
Use Cases
- Examples for API docs
- Paste a response struct to get example JSON with the exact keys it serializes to, ready for docs or tests.
- Check json tags
- See the real JSON shape with renamed tags, "-" exclusions, unexported fields and embedded structs applied.
- Draft request bodies
- Build the skeleton of the JSON to send from a request struct and just fill in the values.