Re: [PHP] Parsing JSON; back-slash problem

2009-12-15 Thread Andrew Burgess
Thanks guys; I've got it working now! On Tue, Dec 15, 2009 at 9:54 AM, Wouter van Vliet / Interpotential wrote: >> >> If you don't have access to do this, look at stripslashes() > > And if you absolutely want to be on the safe side - check* if the > magic_quotes option is enabled - if so; do stri

Re: [PHP] Parsing JSON; back-slash problem

2009-12-15 Thread Wouter van Vliet / Interpotential
> > > If you don't have access to do this, look at stripslashes() > And if you absolutely want to be on the safe side - check* if the magic_quotes option is enabled - if so; do stripslashes. If not - then obviously don't. * http://www.php.net/manual/en/function.get-magic-quotes-gpc.php > > > --

Re: [PHP] Parsing JSON; back-slash problem

2009-12-15 Thread Shawn McKenzie
Ashley Sheridan wrote: > On Tue, 2009-12-15 at 06:52 -0500, Andrew Burgess wrote: > >> This seems like a pretty basic question, but it has me stumped. >> >> Here's my scenario: I'm using Douglas Crockford's JSON2.js to parse an >> object in JavaScript, which I then pass to a PHP script to store in

Re: [PHP] Parsing JSON; back-slash problem

2009-12-15 Thread Ashley Sheridan
On Tue, 2009-12-15 at 06:52 -0500, Andrew Burgess wrote: > This seems like a pretty basic question, but it has me stumped. > > Here's my scenario: I'm using Douglas Crockford's JSON2.js to parse an > object in JavaScript, which I then pass to a PHP script to store in a > file. I use JSON.stringif