Control output format (JSON mode)
A community prompt for control output format (json mode), imported from awesome-claude-prompts (MIT).
langgptai · awesome-claude-promptsUpdated 2026-07-082,769 copies
Control output format (JSON mode) is a community-contributed prompt from awesome-claude-prompts (MIT). Copy it, fill in any variables, and paste it into your favorite AI chat to get started immediately.
The prompt
check: https://docs.anthropic.com/claude/docs/control-output-format > Prefilling the response with an open bracket can help. Add "Do not output preamble or explanations." and it follows it pretty well.
Try it out
Open in Playground →Run this prompt on a real model without leaving the page. Every run is saved to your history for this prompt.
How to use
- 1Copy the prompt as-is — no variables required.
- 2Paste it into ChatGPT, Claude, Gemini, or any capable model.
- 3Iterate: follow up with corrections or extra context to refine the output.