Response can't send() automic where setJsonContent() method is called

in my Micro App,

use middleware “after”,like below: ``` <?php ...... $app->after(function () use ($app) { $result = $app->getReturnedValue();

if(is_array($result) || is_object($result)){
    // must add this line
} else {

}); ...

.... $app->handle(); ?> ```

when my response setJsonContent(),the response must be "$app->response->send()" manual。 but when response setContent() ,it does not need use "$response->send()" method.

is it a bug?

edited Mar '17

Yes this is correct, send is only done if returned value is string or response object. This could be changed though imho to change value of returned value in micro because it's possible in mvc, create issue on github maybe.