# Query explain in json

**URL:** <https://community.stardog.com/t/query-explain-in-json/2051>\
**Category:** Support\
**Created:** [October 28, 2019, 2:27pm UTC](https://community.stardog.com/t/query-explain-in-json/2051 "2019-10-28T14:27:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zachary.whitley](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/zachary.whitley/32/94_2.png) [@zachary.whitley](https://community.stardog.com/u/zachary.whitley)\
**Post date:** [October 28, 2019, 2:27pm UTC](https://community.stardog.com/t/query-explain-in-json/2051/1 "2019-10-28T14:27:23Z")

</div>

Studio is able to return query plans in JSON. Is there any way to get JSON query plan results from the CLI or rest interface? I don't see any option in the CLI help command or the apiary docs.

---

<div class="post-metadata">

**Author:** ![stephen](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/stephen/32/27_2.png) [@stephen](https://community.stardog.com/u/stephen)\
**Post date:** [October 28, 2019, 2:33pm UTC](https://community.stardog.com/t/query-explain-in-json/2051/2 "2019-10-28T14:33:14Z")

</div>

For the REST interface, you can simply add the "Accept: application/json" header. It doesn't look like the CLI has been updated to reflect that.

---

<div class="post-metadata">

**Author:** ![zachary.whitley](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/zachary.whitley/32/94_2.png) [@zachary.whitley](https://community.stardog.com/u/zachary.whitley)\
**Post date:** [November 11, 2019, 2:33pm UTC](https://community.stardog.com/t/query-explain-in-json/2051/3 "2019-11-11T14:33:16Z")

</div>

Closed on November 11, 2019, 2:33pm UTC

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