# Building aggregations from JSON with the Java client

**URL:** https://discuss.elastic.co/t/building-aggregations-from-json-with-the-java-client/98101
**Category:** Elasticsearch
**Created:** [August 23, 2017, 2:55pm UTC](https://discuss.elastic.co/t/building-aggregations-from-json-with-the-java-client/98101 "2017-08-23T14:55:25Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![MikeThomsen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mikethomsen/32/19378_2.png) [@MikeThomsen](https://discuss.elastic.co/u/MikeThomsen)
#### Post date: [August 23, 2017, 2:55pm UTC](https://discuss.elastic.co/t/building-aggregations-from-json-with-the-java-client/98101/1 "2017-08-23T14:55:25Z")

</div>

I'm working on a project where using the AggregationBuilders is not an option because we need to be able to define new aggregations without code changes. I've done a lot of searching, and it looks like Elastic dropped the ability to pass a RAW JSON string representation of the aggregations around version 5.0.0. Is that correct? I really don't want to have so start posting aggregations to individual nodes.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [September 20, 2017, 2:55pm UTC](https://discuss.elastic.co/t/building-aggregations-from-json-with-the-java-client/98101/2 "2017-09-20T14:55:35Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
