I have a issue on updating json type column element value;
UPDATE employer SET address->>'locality' = 'NYC' where "Id"='30'
address is jsonb type column and have following elements
{"region": "", "locality": "", "postal-code": "", "country-name": "CAN", "street-address": ""}
So how can I update locality element in this address column ?
Note ; Im using postgres 9.4
Thank you