In what scenarios is it better to use json_encode() than to use serialize()?
<p>That's about all I need to ask. Checked the PHP manual and saw a user post saying that serialize is 45-90% slower than json_encode (he ran some benchmarks). But how "slow" is slow? I can find a lot of "versus" stuff sprawling around but none of which a beginner like me can relate to. </p>

<p>I just wrote a script that encoded an array in json and another one to decode it. I did same with serialize. Obviuously that won't tell me any significant differences between them.</p>
