update 2 elements of json