# SearchResponse to Json

**URL:** <https://discuss.elastic.co/t/searchresponse-to-json/19777>\
**Category:** Elasticsearch\
**Created:** [September 15, 2014, 2:16am UTC](https://discuss.elastic.co/t/searchresponse-to-json/19777 "2014-09-15T02:16:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hieronymus](https://avatars.discourse-cdn.com/v4/letter/h/74df32/32.png) [@Hieronymus](https://discuss.elastic.co/u/Hieronymus)\
**Post date:** [September 15, 2014, 2:16am UTC](https://discuss.elastic.co/t/searchresponse-to-json/19777/1 "2014-09-15T02:16:43Z")

</div>

I have been Googling and searching this site for hours and I don't understand why there is no _complete_ code example for how to create Json from a SearchResponse. I am using the Java API and want to construct my own Json, but there are no examples! There are many written clues that describe in partial terms how to use this or that class, but no actual code examples. Why is that? This seems like pretty crucial information that should be easy to find and use.

Any help? I'm way behind schedule spending so much time searchng... thx

---

<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:** [July 6, 2017, 1:02am UTC](https://discuss.elastic.co/t/searchresponse-to-json/19777/2 "2017-07-06T01:02:26Z")

</div>


