---
title: "Discussion on \"How to Ask AI to return JSON in the Right Way\" | Hashnode"
description: "Discussion on \"How to Ask AI to return JSON in the Right Way\". Quite often when you request AI to send you a JSON, it responds with anything but not the JSON, or JSON is just a part of it.\n\nThere are some ways to solve this\n1. Ask to return JSON at the end\nFor example your prompt looks like\nGenerate products tha..."
url: "https://hashnode.com/posts/how-to-ask-ai-to-return-json-in-the-right-way/64a6b8e13c46bd9560490a04"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to Ask AI to return JSON in the Right Way](https://igorboky.hashnode.dev/how-to-ask-ai-to-return-json-in-the-right-way?utm_source=hashnode&utm_medium=feed)

Quite often when you request AI to send you a JSON, it responds with anything but not the JSON, or JSON is just a part of it. There are some ways to solve this 1. Ask to return JSON at the end For example your prompt looks like Generate products tha...

Jul 6, 2023 · 2 min read · igorboky.hashnode.dev  
Read the article

-   [#ai](https://hashnode.com/tag/ai)
-   [#json](https://hashnode.com/tag/json)
-   [#best-practices](https://hashnode.com/tag/best-practices)

## Written by

[Igor Boky](https://hashnode.com/@igorboky)

@igorboky

  
[View profile](https://hashnode.com/@igorboky)

Tech-Entrepreneur Co-founder at Fleexy and Devhouse

Fan of fast product development. Believe that things are simpler than they could look like

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
