mholt

json-to-go

Translates JSON into a Go type in your browser instantly (original)

by mholt

JavaScript

JavaScript92.7%
Go7.3%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

2 of 6 standards met

Community profile →
42
✓README✓License○Contributing○Code of Conduct○Issue Template○PR Template

Recent PRs & issues

Quiet · 4 in progress · Last activity 2y ago
See all on GitHub →
ClifHouck

Go 1.24's json/encoding has added support for a new struct field option: . From Go 1.24's release notes: When marshaling, a struct field with the new omitzero option in the struct field tag will be omitted if its value is zero. If the field type has an IsZero() bool method, that will be used to determine whether the value is zero. Otherwise, the value is zero if it is the zero value for its type. The omitzero field tag is clearer and less error-prone than omitempty when the intent is to omit zero values. In particular, unlike omitempty, omitzero omits zero-valued time.Time values, which is a common source of friction. This is a really nice addition, especially for JSON requests. Could json-to-go support this alongside the option? BTW your tool has been really useful to me. Thanks for putting out there!

ClifHouck · 1y ago
zweix123

This is a great tool. I have an idea that although annotations are not included in the Json standard, they have been widely implemented; Can our tool also place the corresponding comments after the converted fields while parsing Json?

zweix123 · 1y ago
alob-mtc

Feature suggestion.** if we can have a VSCode extension version of this. Goland IDE has this by default VSCode doesn't. It would be really nice to have.

alob-mtc · 1y ago
mcarbonneaux

For information i've converted the javascript code to golang (AI assisted !) because we need to use in golang directly to generate golang struct. https://github.com/MCAProject/go-json-to-go

mcarbonneaux · 1y ago
YaroslavPodorvanov

As user i want to continue with same "dark-mode" as set before

YaroslavPodorvanov · 2y ago
Structured data for AI agents

Repository: mholt/json-to-go. Description: Translates JSON into a Go type in your browser instantly (original) Stars: 4618, Forks: 476. Primary language: JavaScript. Languages: JavaScript (92.7%), Go (7.3%). License: MIT. Homepage: https://mholt.github.io/json-to-go/ Topics: go, golang, json, translates-json. Open PRs: 4, open issues: 15. Last activity: 2y ago. Community health: 42%. Top contributors: mholt, grische, mike-hosseini, kkkiio, netaisllc, ShevaXu, anpez, remitly-brandonr, ejcx, hajimehoshi and others.