update Json Node
Updates a JSON node with a new value, handling potential conflicts.
Parameters
current Object
The ObjectNode to update.
key To Set
The key to set in the ObjectNode.
value Node
The new JsonNode value.
Throws
if a value cannot be set for an existing key.