WP-API/WP-API — pull request #154 by rmccue (2014-04-29 13:28:50+00:00)
Title: Add json_ensure_response

This ensures that a value is either a WP_JSON_ResponseInterface object, or a WP_Error, by wrapping any other value in a WP_JSON_Response instance.

Fixes #151.