Use GSON rather than strings to pass JSON objects around in Elasticsearch APIs

Description

It's ridiculous that we return strings when we always use GSON under the hood and we know that users will need to do the same.

However, exposing GSON means we will be in trouble if we ever decide to switch to another JSON parsing library. We should be careful not to make that impossible.

Environment

None

Assignee

Yoann Rodière

Reporter

Yoann Rodière

Labels

None

Suitable for new contributors

None

Feedback Requested

None

Components

Fix versions

Priority

Major
Configure