Guest User

Untitled

a guest
Oct 17th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. json obj1 = {"key with space" : 10}
  2. json obj2(obj1);
  3. # .change_key not a real function
  4. obj2.change_key("key with spaces", "key_with_spaces");
  5.  
  6. json obj1 = {"key with space" : 10}
  7. json obj2(obj1);
  8.  
  9. obj2["key with spaces"] = obj2.at("key_with_spaces");
  10. obj2.erase("key_with_spaces");
Add Comment
Please, Sign In to add comment