Change the wording, keep your experiment. Saved in this browser when storage is available.
The question to explore
Build Mira’s character card
How can a program keep facts separate?
About 8 minutes / Suggested pace / No account needed
Try the experimentWhat this activity helps you do
Change Mira’s age and watch one JSON value change. Separate named fields let a program find her age directly. Having a field for a fact does not make the fact correct.Apps and AI tools need values they can read separately. Change Mira’s age and find exactly which JSON value updates. Named fields let the next step use her age without extracting it from a paragraph; checking that age is still a separate job.
Local teaching illustration / No AI model call
- Find the name and age fields in the JSON record.
- Edit Character name or choose a whole-number Age from 17 to 21. The JSON updates as you edit.
- Restore her age to 17. Explain the difference between a field name and its value.
{ "name": "Mira", "age": 17 }Change a control to explore the example when JavaScript is enabled.
The idea
A record gives each piece of information a name, such as name or age. JSON writes that record as text. Text values use quotes; numbers do not need them.A paragraph can tell us that Mira is 17. This record puts her name and age in separate named fields. That structure gives a program a specific place to look when it needs her age, rather than asking it to interpret a whole scene. A larger record could include other fields, but this activity uses only those two.
State means the values the program holds right now. Editing this record changes this activity, not the agreed facts in other lessons. Mira starts at 17. A readable record can still contain the wrong age.JSON is a text format for structured data. Quotes mark text; a number can stand on its own. The values currently held by a program are part of its state. Editing this practice record changes the experiment’s state. It does not make your new value an established fact in every other activity. Our starting story still says Mira is 17.
Take this with you
What changed?
Structured data gives each fact a place, but structure alone does not make a fact correct.
Try explaining it.
Could a perfectly readable JSON record give Mira the wrong age?
Open a possible explanation
Yes. Valid structure and correct story facts are separate checks. You can parse a record successfully and still need to compare it with the agreed character notes.
Choose what to try next
Keep exploring, or stay here and try another variation.