![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | Thakee Nathees |
i have a dictionary like below
var dict = { "key1": "val1", "key2":"val2" }
and i want to change the name of the key1 without changing anything else like
dict = { "key1_changed": "val1", "key2":"val2" }
how to do this?