json-rust icon indicating copy to clipboard operation
json-rust copied to clipboard

remove and into are not working on parsed object

Open ArunGust opened this issue 4 years ago • 0 comments

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();

ArunGust avatar Mar 27 '21 13:03 ArunGust