“You said something about Jason, yesterday,” Erik asked Simon. “But you said it’s another Jason, not the one from my math class.”
“Yes, that’s another Jason,” Simon smiled. “It’s JSON, J–S–O–N, the file format we use to store data.”
“Sometimes you want to store just a piece of text or an image. They usually don’t have any fixed structure. Text is just text. And an image can be large or small, it can be black and white or color, but it doesn’t have any structure—it’s just a bunch of pixels. This is what we call unstructured data.
“But in your case, each order has a structure. Each order has the customer’s name and all the components of the drink you’re going to prepare—no more, no less. It always has the main drink, the flavor, and the topping. Because of the menu you wrote, the customer should answer all these questions before you can print or save the order. Also, the customer can’t add anything to the order.”