title: Save textarea value to JSON
body: <p>How to save the value of textarea to JSON?</p>
  
  <p>I have a textarea; I need to save value of that text area into a js object.</p>
  
  <p>Its working fine if there is no 'enter'(line break) pressed. How to save it and and retrieve it as such with linebreaks.</p>
  
  <p>Save using</p>
  
  <pre><code>dataObject[0]["Category"][0]["Category"] = $('textarea').val();
  </code></pre>