src/Oito/Micro/Application.php
public function jsonValidation($validations = null, $status = 200) {
        $data = [
            'validation'  => true,
            'validations' => $validations
        ];

        $r = new JsonResponse($data, $status);
        $r->headers->set('Content-Type', 'application/json; charset=utf-8');
        $r->setCharset('UTF-8');
        return $r;
    }
public function jsonValidation($validations = null, $status = 200) {
        $data = [
            'validation'  => true,
            'validations' => $validations
        ];

        $r = new JsonResponse($data, $status);
        $r->headers->set('Content-Type', 'application/json; charset=utf-8');
        $r->setCharset('UTF-8');
        return $r;
    }
Create a JSON response
@param mixed $validations Validation messages to be returned
@param int $status HTTP response code
@return \Symfony\Component\HttpFoundation\JsonResponse