You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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();
The text was updated successfully, but these errors were encountered:
ArunGust
changed the title
remove and into are not working parsed object
remove and into are not working on parsed object
Mar 27, 2021
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();
The text was updated successfully, but these errors were encountered: