commit | 6988f53fcb05c13d99dd846494d79ea3bb3b1d4c | [log] [tgz] |
---|---|---|
author | Eric Haszlakiewicz <erh+git@nimenees.com> | Tue Jul 24 23:27:41 2012 -0500 |
committer | Eric Haszlakiewicz <erh+git@nimenees.com> | Tue Jul 24 23:27:41 2012 -0500 |
tree | 204aece682b23563bb42a7f5d2889b19d71e9c0c | |
parent | 381f77c5bccf20234a2bddae2b6ac43997faf0a2 [diff] |
Rewrite json_object_object_add to replace just the value if the key already exists so keys remain valid. This is particularly useful when replacing values in a loop, since it allows the key used by json_object_object_foreach to continue to be used.