php conver text into json variable
<p>I have textarea field where users can write random text. After posting it i need to put this text into json variable via php.</p>

<p>Something like that, text:</p>

<pre><code>Lorem Ipsum is simply "dummy text" of the printing\typesetting industry.
Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
</code></pre>

<p>And this text must be converted into valid json variable. Any help?)</p>