RE: [PHP-DEV] JSON inclusion in core

From: Date: Tue, 31 Jan 2006 15:24:38 +0000
Subject: RE: [PHP-DEV] JSON inclusion in core
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-21746@lists.php.net to get a copy of this message
> >JavaScript does have a concept of an object in its prototype chain. > >However, it is not captured in JSON, so the part about JSON's object > >being just an associative array is correct. > > > >It makes sense to me that JSON->PHP would produce an associate array. > >Independent of that, it might be convenient to have a tool that maps > >associative arrays into objects, but that is not a JSON operation. > I'm not sure that js->PHP is that critical (in terms of > getting clever > with objects etc), doing standard HTTP GET/POST requests with > urlencoded > values into $_GET/$_POST, 99% of the time is far more > efficient way of > sending data to the server, and alot easier to debug.. You can also > implement the filter code on that data.... > > JSON in general looks far better suited to the PHP->js layer.. That is true at the moment. I am expecting that to change. In any case, it makes sense that you can go in either direction.

« previous php.internals (#21746) next »