JSON prompting

As I’ve often experienced, crafting content with AI feels like an intricate dance of verbose prompts. It requires a level of detail that could easily be conveyed in fewer words—if only there were a more streamlined approach.

Then, I stumbled upon a fascinating article by Analytics Vidhya that sparked a new wave of inspiration in my mind. You can check it out here: Analytics Vidhya – JSON Prompting.

After experimenting with a few image generations, I was genuinely impressed by the output. However, I couldn’t help but notice that the JSON prompts discussed in the article tend to be more enriched compared to their traditional counterparts.

I foresee that this innovative form of prompting will be particularly well-suited for Vibe coding. Excited to dive in, I can’t wait to try something out quickly!

Screenshot of Visual Studio Code interface displaying a folder named 'POKEMON' in the Explorer panel.
A screenshot of Visual Studio Code showcasing the ‘POKEMON’ project folder, reflecting the workspace environment for coding.

let’s do the same comparison:

first use this prompt:

Create a responsive webpage displaying a Pokémon index featuring 6 Pokémon: Pikachu, Bulbasaur, Jigglypuff, Meowth, Charizard, and Eevee. Each Pokémon should be presented as a card.
When a card is clicked, it should expand to reveal more detailed information about that Pokémon:
Pikachu:”type”: “Electric”,
“height”: “0.4 m”,
“weight”: “6.0 kg”,
Bulbasaur:”type”: “Grass/Poison”,
“height”: “0.7 m”,
“weight”: “6.9 kg”,
Jigglypuff:”type”: “Normal/Fairy”,
“height”: “0.5 m”,
“weight”: “5.5 kg”,
Meowth:”type”: “Normal”,
“height”: “0.4 m”,
“weight”: “4.2 kg”,
Charizard:”type”: “Fire/Flying”,
“height”: “1.7 m”,
“weight”: “90.5 kg”,
Eevee:”type”: “Normal”,
“height”: “0.3 m”,
“weight”: “6.5 kg”,
Responsive, Pokémon-themed design with vibrant colors and card animations

Cline executed the task with 0,34$

Screenshot of a task overview for creating a responsive webpage that displays a Pokémon index with detailed specifications.
Overview of the task to create a responsive Pokémon index webpage with detailed specifications.

the page seems correct

A colorful Pokémon index webpage featuring cards for Pikachu, Bulbasaur, Jigglypuff, and Charizard, with detailed info displayed on select cards.
Interactive Pokémon Index webpage showcasing Pokémon cards with details like type, height, and weight.

now let’s start from scratch using json

Screenshot of a code editor interface showing the file explorer with a folder named 'POKEMONJSON'.
Screenshot of the Visual Studio Code Explorer highlighting the ‘POKEMONJSON’ folder, showcasing the JSON project structure.

and let’s give this prompt

{
“task”: “Create a webpage for a Pokémon index”,
“description”: {
“content”: “A webpage displaying 6 Pokémon in a card-based layout with animated images”,
“pokemons”: [
{
“name”: “Pikachu”,
“type”: “Electric”,
“height”: “0.4 m”,
“weight”: “6.0 kg”
},
{
“name”: “Bulbasaur”,
“type”: “Grass/Poison”,
“height”: “0.7 m”,
“weight”: “6.9 kg”
},
{
“name”: “Jigglypuff”,
“type”: “Normal/Fairy”,
“height”: “0.5 m”,
“weight”: “5.5 kg”
},
{
“name”: “Meowth”,
“type”: “Normal”,
“height”: “0.4 m”,
“weight”: “4.2 kg”
},
{
“name”: “Charizard”,
“type”: “Fire/Flying”,
“height”: “1.7 m”,
“weight”: “90.5 kg”
},
{
“name”: “Eevee”,
“type”: “Normal”,
“height”: “0.3 m”,
“weight”: “6.5 kg”
}
],
“functionality”: “Each Pokémon card shows an animated image and name by default. Clicking a card toggles an expanded view with type, height, and weight.”,
“style”: “Responsive, Pokémon-themed design with vibrant colors and card animations”
},
“constraints”: {
“tech_stack”: {
“html”: “Standard HTML5”,
“css”: “Tailwind CSS via CDN”,
“javascript”: “Vanilla JavaScript”
},
“layout”: “Responsive grid with 2-3 cards per row on desktop, 1 per row on mobile”,
“interactivity”: “Click to toggle card expansion, smooth transitions”,
“image_format”: “Animated images (e.g., short animation sequences), fallback to static PNG if animated not available”
},
}

what I immediately notice is that the operation now has been fast and, probably due to the tech stack I specified (I should have done also in the other example:( ) it created just one single html file with less money

A screenshot of a code editor displaying a task panel for creating a webpage, showing token usage, cache information, and an 'All 9 steps completed' message.
Display of a task summary in a development environment, detailing JSON prompts and resource management.

application looks ok as well

Responsive webpage showcasing a Pokémon index with cards for Pikachu, Bulbasaur, and Jigglypuff, displaying each Pokémon's type, height, and weight.
A vibrant webpage showcasing a Pokémon index with cards for Pikachu, Bulbasaur, and Jigglypuff, featuring their types, heights, and weights.

key takeway is that JSON prompting seems to perfectly fit the vibecode use case as allow to go deeper into the details.

HOWEVER it needs some technical expertise to correctly create and format the JSON

Would a JSON prompter (plain text to JSON) help in your opinion?

Response

  1. […] my previous post https://vibeops.one/2025/09/09/json-prompting/ I spoke about how the JSON prompting results to be powerful and concise to describe exactly what […]

    Like

Leave a comment