fix Gson formatting via element.getAsString() and revert to toJson() for JMap