json-rust
json-rust copied to clipboard
remove and into are not working on parsed object
I tried to remove a key and assign new key didnt work. Any idea ? let mut parsed = json::parse(&data).unwrap(); let var1 = parsed.remove("test").to_string(); parsed["cdate"] = Utc::now().to_string().into();