Custom JSON De-serializer for PHP

My previous post dealt with taking an object graph and turning it into JSON. If you are building a RESTful web service using PHP and you don’t have the option of using frameworks like Jersey for Java or just prefer doing things in PHP then you also might find…

Custom JSON Serializer for PHP

The project I am working on currently requires serializing PHP objects into natural JSON. After a while it gets a bit old having to transform those objects into key-value pair arrays to then transform them into JSON using json_encode. An alternative would be to make all properties public and…