WP-API/WP-API — pull request #24 by rmccue (2013-11-25 05:05:11+00:00)
Title: Introduce support for JsonSerializable

To allow methods to return raw objects, we should introduce support for the [JsonSerializable](http://php.net/manual/en/class.jsonserializable.php) interface.

In order to do this in a <5.4-compatible manner, this will require walking arrays and such, plus a compatibility interface. Worth it, IMO.