fixing http post of JSON to ES