python - store Latex in Json format -
i building math exercises database, use couchdb , store exercises in json format, can store meta-data each exercise.
i have troubles having valid json latex syntax, way tackle issue? have thought encoding latex not sure it's idea, above if need decoded mobile device...
example of data:
{"taglist": null, "flagcount": null, "category": "algebre", "chapter": "polynomes", "difficulty": 1, "viewcount": null, "hint": null, "question": "soit $p \in \mathbb{r}[x]$ scindé sur $\mathbb{r}$.\\ \begin{enumerate} \item montrer que $p'$ est aussi scindé sur $\mathbb{r}$. \item montrer que les racines multiples de $p'$ sont aussi racines de $p$. \item ce resultat reste-t-il valable dans $\mathbb{c}[x]$ ? \end{enumerate}" "solution": null}
moreover, might need encrypt "solution" because no want accessed without permission, maybe should store encrypted form in json?
or maybe solution store latex way... ? new kind of problem, appreciate ;).
thanks
in json strings backslash character \
have special meaning. if want store in data use \\
(escaped backslash). json parser change single 1 , couch should store "$\\mathbb{r}$.\\\\"
$\mathbb{r}$.\\
.
Comments
Post a Comment