LearnAI
Module 3 · Accurate Data Formats (Pro) · Lesson 1/4
← Back to catalog
Task

Nested JSON by schema

Return ONLY the nested JSON of the form {"user": {"name": "...", "age": number}, "interests": [strings]} according to the client data. No explanation.

Unlock access to submit solutions for instant AI review.Start for free
Complex API structures
💡 A bit of theory

The model reproduces the structure that you showed. For nesting, show the exact diagram with an example - it will repeat the levels and types of fields.

How it's graded · passing score 70

  • 1Valid JSON without text around it40%
  • 2There are fields user and interests35%
  • 3The data is laid out correctly (name, age, interests)25%
Your promptClaude ⌄