Compare objects or json strings