JSON generator for Elasticsearch