cargo serde_json 0.9.6

latest releases: 1.0.117, 1.0.116, 1.0.115...
7 years ago
  • Allow mutable square-bracket indexing into a serde_json::Value (#249)

    let mut data = json!({ "x": 0 });
    
    // replace an existing key
    data["x"] = json!(1);
    
    // insert a new key
    data["y"] = json!([false, false, false]);
    
    // replace an array value
    data["y"][0] = json!(true);
    
    // inserted a deeply nested key
    data["a"]["b"]["c"]["d"] = json!(true);

Don't miss a new serde_json release

NewReleases is sending notifications on new releases.