JSON til Go
.JSON
JSON til Go: Behandl JSON lokalt i browseren uden upload og få rent Go-output med det samme.
Gennemgået eksempel
RFC 8259 → Go encoding/jsonInput
{
"service": "structfmt-api",
"version": 2,
"active": true,
"owner": { "name": "Ada Lovelace", "region": "us-east" },
"tags": ["json", "yaml", "schema"],
"metrics": [
{ "id": 1, "latencyMs": 14.2, "ok": true },
{ "id": 2, "latencyMs": 19.8, "ok": true }
]
...Output
type Root struct {
Service string `json:"service"`
Version int64 `json:"version"`
Active bool `json:"active"`
Owner Owner `json:"owner"`
Tags []string `json:"tags"`
Metrics []MetricsItem `json:"metrics"`
}
type MetricsItem struct {
...StructFmt
100% lokalt · Ingen upload
Behandl JSON lokalt i browseren uden upload og få rent Go-output med det samme.
Formatér og validér
JSON til Go.
Skema og kode
Output: Go.
Forespørg og sammenlign
Kopiér / Download.
JSON til Go
- 1Input: JSON (Åbn fil).
- 2Konverter: JSON → Go.
- 3Output: Go (Kopiér / Download).
FAQ
100% lokalt · Ingen upload (JSON)?
Behandl JSON lokalt i browseren uden upload og få rent Go-output med det samme.
JSON til Go (JSON → Go)?
Behandl JSON lokalt i browseren uden upload og få rent Go-output med det samme. (JSON → Go).
Næste trin (Go)?
Næste trin: StructFmt (Go).