JSON a Rust
.JSON
JSON a Rust: Processa JSON localment al navegador sense pujar dades amb sortida Rust neta.
Exemple pràctic
RFC 8259 → Rust SerdeEntrada
{
"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
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct Owner {
pub name: String,
pub region: String,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct MetricsItem {
...StructFmt
100% local · Sense pujades
Processa JSON localment al navegador sense pujar dades amb sortida Rust neta.
Formata i valida
JSON a Rust.
Esquemes i codi
Sortida: Rust.
Consulta i compara
Copia / Baixa.
JSON a Rust
- 1Entrada: JSON (Obre fitxer).
- 2Transforma: JSON → Rust.
- 3Sortida: Rust (Copia / Baixa).
FAQ
100% local · Sense pujades (JSON)?
Processa JSON localment al navegador sense pujar dades amb sortida Rust neta.
JSON a Rust (JSON → Rust)?
Processa JSON localment al navegador sense pujar dades amb sortida Rust neta. (JSON → Rust).
Pas següent (Rust)?
Pas següent: StructFmt (Rust).