laravel/framework — pull request #800 by barryvdh (2013-04-02 08:19:57+00:00)
Title: Return JSON when response is array

As described in #781, it makes sense to return JSON when an array is returned as response.