ES v0.19 backport of change in JsonParser