{"id":57082,"library":"serde-json","title":"Serde JSON","description":"A JSON serialization file format for Serde.","status":"active","version":"1.0.150","language":"rust","source_language":null,"source_url":"https://github.com/serde-rs/json","tags":["json","serialization","parsing","serde"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nserde_json = \"1.0.150\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add serde_json","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"Value","correct":"use serde_json::Value;"}],"quickstart":{"code":"use serde_json::Value;\n\nfn main() {\n    let data = r#\"{\"name\": \"Alice\", \"age\": 30}\"#;\n    let v: Value = serde_json::from_str(data).unwrap();\n    println!(\"{}\", v[\"name\"]);\n}","lang":"rust","description":"Parses a JSON string into a generic Value and accesses a field."},"warnings":[{"fix":"Define a struct with #[derive(Deserialize)] and use serde_json::from_str::<MyStruct>().","message":"Using `serde_json::Value` is flexible but loses type safety; prefer custom types with Serde derive for production code.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"search_vec":"'file':6 'format':7 'json':2,4,10 'pars':12 'serd':1,9,13 'serial':5,11","created_at":"2026-06-16T15:27:39.825898+00:00","updated_at":"2026-06-16T15:27:39.825898+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/serde-rs/json","github":"https://github.com/serde-rs/json","docs":"https://docs.rs/serde_json/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["serialization"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-16","next_check":"2026-12-13","install_tag":null}}