add json_object_set_member() and json_object_set_member2()

These functions set the value associated with a key in an object, but will not
introduce duplicates.