use json comparison in unique