title: PHP json_decode(), used with a class defined by me, returns a stdClass
body: <p>if i pass to the json_decode() function a JSON string relative to an object of a class defined by me, it returns a stdClass object (then loses the methods) instead of original class object...any suggestions?</p>