# assistant: Improve JSON handling in \`/fetch\` command \(\#12864\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/2509af723f75239023053950afae342118b3f3e5)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 2509af723f75239023053950afae342118b3f3e5

Requested commit: 2509af723f75239023053950afae342118b3f3e5

Commit: 2509af723f75239023053950afae342118b3f3e5

Tree: 568c1de6cf270cfdcec8858dd7e4ff3f220b01c4

Author: Marshall Bowers

Committer: GitHub

## Message

```
assistant: Improve JSON handling in `/fetch` command (#12864)

This PR improves the `/fetch` command with better support for URLs that
return JSON content.

JSON response bodies will now be pretty-printed and placed within a
Markdown code block:

<img width="690" alt="Screenshot 2024-06-10 at 3 39 52 PM"
src="https://github.com/zed-industries/zed/assets/1486634/4a7c1cb7-9f5b-4a63-9e8e-5168bf9a6625">

Release Notes:

- Improved the handling of JSON response bodies in the `/fetch` command
in the Assistant.
```

## Parents

- [8078e58494b8255003f45e01ddc4c8502fa33efb](https://git.cafe/gitcafe/zed/commit/8078e58494b8255003f45e01ddc4c8502fa33efb?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/2509af723f75239023053950afae342118b3f3e5?format=markdown)
