The .getMap method works fine for the current level, but internal JsonObject's get screwed up.
Getting the actual json string solves the problem... it is probably converted into that same format later on by the ES client.
Example that used to fail:
{"obj": { "a1": ["apple"] } }
The .getMap method works fine for the current level, but internal JsonObject's get screwed up. Getting the actual json string solves the problem... it is probably converted into that same format later on by the ES client.
Example that used to fail: {"obj": { "a1": ["apple"] } }