you mean a where condition? I will just assume you mean a set in this case not an array? otherwise you would use json_operations I guess or some kind of serializations.
update tableA set z = 3 where x = 1 and y = 2
in databases you should think more along the lines of sets and tables and less in data structures.