title: store Latex in Json format
body: <p>I am building a math exercises database, I would like to use couchDB and then store the exercises in a json format, so I can store meta-data with each exercise. </p>
  
  <p>I have troubles having a valid json with all the Latex syntax, what would be a good way to tackle this issue? I have thought about encoding the latex but I am not sure it's a good idea, above all if it will need to be decoded by a mobile device...</p>
  
  <p>Example of data:</p>
  
  <pre><code>     {"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}
  </code></pre>
  
  <p>Moreover, as I might need to encrypt the "solution" because I do no want it to be accessed without permission, maybe I should store only the encrypted form in the json?</p>
  
  <p>Or maybe the solution is to store the latex another way... ? I am very new to this kind of problem, I appreciate any help ;).</p>
  
  <p>Thanks</p>