function merge two json objects