adds json decoding to contact add/update