S
Seoffix.com
Sign In Get Pro Membership

AI & Prompt Engineering

Structured Output

Intermediate Prompt 30 XP

Structured Output

When a program reads the answer, ask for strict JSON with named keys.

Example

Return JSON with keys "title" and "tags". No other text.

Your task

Write a prompt that asks for JSON with the keys summary and score and nothing else.

Hints

  1. Name both keys
  2. Say no other text

Check your understanding

Answer every question to pass.
1. Why ask for JSON?

Your answer

This lesson is checked against the lesson rules. Your code is never run on our servers.

AI Code Explainer & Translator

Runs without any outside service.
 
Mark Complete & Earn XP
Earn 30 XP after you pass the quiz. Finish every lesson in the track to earn its certificate.
Sign in to earn XP

AI & Prompt Engineering

Lessons in this track
Questions about this lesson? Ask the Coding & Web Dev squad. Discuss in Community