> I guess I am confused. > Javascript, and thus JSON, has no concept of an object. > It has something it calls an object, but that is just an > associative array. > Are you trying to layer some other syntax on top of > JSON to convey more meaning than what JSON/Javascript > natively supports?
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. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php