update JSON for elasticsearch