Fixed merge_json, delete_resource functions.