return whether two jsons are equal