ByeBuy.ai
BUILD YOUR ESCAPE ROUTE · ✦ CURSOR · HOST IT · ◫ SUPABASE · CONNECT IT · ↯ RELAY · BUILD YOUR ESCAPE ROUTE · ✦ CURSOR · HOST IT · ◫ SUPABASE · CONNECT IT · ↯ RELAY ·
← BYEBUY NOTES

September 11, 2026

WHEN TO USE MARKDOWN AND WHEN TO USE JSON

A ByeBuy AI assistant moves structured data through a system.

Markdown and JSON are not competitors. Good AI projects usually use both.

Markdown is for context, instructions, explanation, and decisions. JSON is for structured values that software must reliably read, store, compare, or send onward. Confusion appears when we ask one format to do the other format’s job.

The simple rule

If you need to...Use
Explain a goal or a processMarkdown
Give an AI rules or contextMarkdown
Keep a product specificationMarkdown
Store exact fields for softwareJSON
Call an API or a toolJSON
Return a repeatable agent resultJSON
Show a person a readable reportMarkdown or normal prose

Think of Markdown as a briefing document and JSON as a labeled container.

One project, two formats

Imagine you are building a simple event-research tool. You keep this in Markdown:

# Event Research Instructions

Find upcoming independent design events in Brussels.

Only include events with a public date, location, and official link.
Do not include events that have already passed.
Return results with a source for each event.

The agent reads the instructions. Then it returns JSON:

{
  "events": [
    {
      "name": "Example Design Night",
      "date": "2026-10-04",
      "city": "Brussels",
      "source_url": "https://example.com"
    }
  ]
}

The application can now sort the events by date, filter them by city, remove old ones, and display them on a page. The final page can turn the fields back into natural language for the reader.

Markdown instructionsAgentJSON findingsDatabase or APIReadable report or application
Markdown instructions → AgentAgent → JSON findingsJSON findings → Database or APIDatabase or API → Readable report or application

Why not put everything in Markdown?

You can place facts in a Markdown table, and that is sometimes perfect for a human report. But tables become fragile when software needs to ingest thousands of records. Column names change. Numbers get mixed with notes. A source gets omitted. A field is present for one company and absent for another.

JSON gives each value a predictable home. That lets you validate it: Is there a ticker? Is the date in the right format? Does every source have a URL? Are numeric values actually numeric?

Why not put every instruction in JSON?

You could place an AI instruction in a JSON string, but it becomes hard to read and revise. A long explanation with examples, exceptions, and a working method belongs in a document designed for humans to scan.

This is especially important when you are collaborating with an agent. You should be able to open the file and answer: what is this agent supposed to do, what evidence does it need, and what should it never do?

Sonariq as an example

Sonariq makes the division concrete. PROMPT.md files tell each research stage how to do its work. Shared_Standards.md gives every stage the same sourcing and quality rules. Data_Contracts.md defines the structured records the system expects.

The agent then leaves two handoffs: HANDOFF.md for the next analyst to understand the findings and open questions, and files such as Stage_Manifest.json and Artifact_Index.json for the system to locate the exact artifacts, dependencies, and status. That means a new AI session does not need to reconstruct the project from chat history.

Markdown prompt + standards
        ↓
Agent research and analysis
        ↓
Readable HANDOFF.md + structured JSON manifest/index
        ↓
Next agent, database, or application

The financial-research example is useful, but the pattern is universal:

Markdown says how to do the job.
JSON says what the job produced.

A practical design test

Before making a file, ask two questions:

1. Will a person need to read, discuss, and revise this? Use Markdown first. 2. Will software need to filter, calculate, validate, or pass this to another system? Use JSON first.

Sometimes the answer is both. A product spec may be Markdown, while its feature flags are JSON. A research brief may be Markdown, while its sources and metrics are JSON. A final report may be Markdown generated from JSON facts.

Practical exercise: split one task into both formats

Choose a recurring job: content research, lead research, customer support, product cataloging, or expense tracking.

Create two files:

instructions.md
result.json

In instructions.md, define the objective, source rules, constraints, and desired result. In result.json, define the fields the next system needs. Ask an AI to review both and tell you whether the instruction and the output format agree.

Check your understanding

1. Which format should hold a project’s brand rules? Why? 2. Which format should hold a list of products a website needs to filter? Why? 3. Can a single workflow use Markdown for input and JSON for output? 4. What is the risk of asking a later agent to extract hard facts from a long paragraph?

ARTICLE DISCUSSION

JOIN THE
CONVERSATION.

0 COMMENTS

BYEBUY ACCOUNT ACCESS

Sign in

Use your account to save routes and make the catalogue yours.

Enter your email and we’ll send a secure sign-in link and code.

NEW ROUTES ADDED WEEKLY · 9,235 CATALOGUE ENTRIES · BUILD · DEPLOY · QUERY · STACK · SAY BYE TO BUY · NEW ROUTES ADDED WEEKLY · 9,235 CATALOGUE ENTRIES · BUILD · DEPLOY · QUERY · STACK · SAY BYE TO BUY ·