# Discover JSON missing \_source field

**URL:** https://discuss.elastic.co/t/discover-json-missing-source-field/268922
**Category:** Kibana
**Created:** [March 31, 2021, 2:09pm UTC](https://discuss.elastic.co/t/discover-json-missing-source-field/268922 "2021-03-31T14:09:00Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![frebri](https://avatars.discourse-cdn.com/v4/letter/f/b77776/32.png) [@frebri](https://discuss.elastic.co/u/frebri)
#### Post date: [March 31, 2021, 2:09pm UTC](https://discuss.elastic.co/t/discover-json-missing-source-field/268922/1 "2021-03-31T14:09:00Z")

</div>

Hi,

We reinstalled Kibana and Elastic with 7.12 and are accustomed to look at certain documents through just pure json, since it has a specific order and grouping. After the upgrade, the JSON tab seems to "pretty print" the json or such, flattening the object to one level making it impossible to get a good visual on the data point. It also seems to put each data point in an array.

![Screenshot 2021-03-31 at 16.02.26](https://us1.discourse-cdn.com/elastic/original/3X/e/e/ee82edd42b3192ff21f9b61f552c819eeb6af06d.png)

When inspecting the API request made by Kibana, I noticed that \_source is set to false. `"_source": false,` and \_source is never returned with the response. When I ran the exact same request through curl but change \_source to true, it does indeed return \_source as well.

Is there any way to change so that either \_source is available through the JSON tab under Discovery, or so that the data in general can be shown closer to the original source?

---

<div class="post-metadata">

### Author: ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)
#### Post date: [March 31, 2021, 2:35pm UTC](https://discuss.elastic.co/t/discover-json-missing-source-field/268922/2 "2021-03-31T14:35:14Z")

</div>

Starting in 7.12, discover will pull data from fields API instead of \_source. You can return to using \_source by setting the [advanced setting](https://www.elastic.co/guide/en/kibana/current/advanced-options.html) `discover:searchFieldsFromSource`

---

<div class="post-metadata">

### Author: ![wylie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wylie/32/81794_2.png) [@wylie](https://discuss.elastic.co/u/wylie)
#### Post date: [March 31, 2021, 4:01pm UTC](https://discuss.elastic.co/t/discover-json-missing-source-field/268922/3 "2021-03-31T16:01:47Z")

</div>

We are looking into adding a \_source viewer back to Discover, here is the issue you can follow: [[Discover] Add \_source tab to doc viewer · Issue #95946 · elastic/kibana · GitHub](https://github.com/elastic/kibana/issues/95946)

---

<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: [April 28, 2021, 4:02pm UTC](https://discuss.elastic.co/t/discover-json-missing-source-field/268922/4 "2021-04-28T16:02:17Z")

</div>

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