JSON output must contain 'question' and 'answer' fields. 'answer' must be valid HTML, using lists for structure and limiting paragraphs to 3 lines. TeX requires specific delimiters and escaping. Tables need styling. Chart.js is used for graphs.