Elasticsearch: Don't use JsonElement.toString

JsonElement.toString returns the value wrapped in an extra pair of
quotes, while getAsString does not.

The base64 decoder that we are currently using seems to be tolerant
of this, but others may not be which could cause issues.

Also, we already use getAsString in other places, so changing this
makes it consistent.

Change-Id: I42c71444782aa467321027856b017df62106c38c
2 files changed
tree: 38063bbfde0e700186a7e70dd7a04e21f03db016
  1. java/
  2. javatests/