...
Code Block |
---|
{ "question": { "text": "<p>Hello<<p>2*5 = ?</p>", "image": "/assets/image.png", "audio": "/assets/audio.mp3", "audioName": "audio file", "hint": "" }, "options": [ { "text": "<p>5</p>", "image": "", "audio": "", "audioName": "", "hint": "", "isCorrect": truefalse }, { "text": "<p>10</p>", "image": "", "audio": "", "audioName": "", "hint": "", "isCorrect": falsetrue } ] } |
Pros:
Simplicity: Each content type is stored in dedicated fields, ensuring straightforward data management.
Readability: Clear field names make parsing and understanding easy.
Efficiency: Direct access to content without needing to iterate through arrays.
...