Luracast/Restler — pull request #49 by secretformula (2012-06-03 21:02:38+00:00)
Title: JsonSerializable exclusion for Json Encode

I added a method for objects which implement "JsonSerializable" to not be automatically converted into associative arrays by the object_to_array() function. This will allow custom implementations of what data within an object should be converted to json and is more inline with the php documentation's guidelines regarding json. http://php.net/manual/en/class.jsonserializable.php