JSON a Go
.JSON
JSON a Go: Processa JSON localment al navegador sense pujar dades amb sortida Go neta.
Exemple pràctic
RFC 8259 → Go encoding/jsonEntrada
{
"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 }
]
...Sortida
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% local · Sense pujades
Processa JSON localment al navegador sense pujar dades amb sortida Go neta.
Formata i valida
JSON a Go.
Esquemes i codi
Sortida: Go.
Consulta i compara
Copia / Baixa.
JSON a Go
- 1Entrada: JSON (Obre fitxer).
- 2Transforma: JSON → Go.
- 3Sortida: Go (Copia / Baixa).
FAQ
100% local · Sense pujades (JSON)?
Processa JSON localment al navegador sense pujar dades amb sortida Go neta.
JSON a Go (JSON → Go)?
Processa JSON localment al navegador sense pujar dades amb sortida Go neta. (JSON → Go).
Pas següent (Go)?
Pas següent: StructFmt (Go).