cargo serde_json 0.9.6

latest releases: 1.0.132, 1.0.131, 1.0.130...
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.