Re: Json.php

From: Date: Mon, 16 Apr 2007 14:33:15 +0000
Subject: Re: Json.php
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-253004@lists.php.net to get a copy of this message
# otto.wyss@orpatec.ch / 2007-04-16 14:03:55 +0200: > Jochem Maas wrote: > > > >that's going to make it completely impossible to use then isn't it. > >no way you could possibly wrap the class/objects functionality in a wrapper > >function. > > > At the moment it's sufficient, since I've now time to figure out how the > Json package can be installed. Then I can switch to use the usual > json_encode function. Thanks. What I don't understand is why you're going from a general interface $someObject->decode($string); # if it quacks like a JSON decoder... to a narrow one: json_decode($string); # you either have the function or you're screwed. Tight coupling -> inflexible code. -- How many Vietnam vets does it take to screw in a light bulb? You don't know, man. You don't KNOW. Cause you weren't THERE. http://bash.org/?255991

« previous php.general (#253004) next »