public function jsonAction(Request $request, $managerName)
    {
        $data = $this->get(ONGRFilterManagerExtension::getFilterManagerId($managerName))
            ->handleRequest($request)
            ->getSerializableData();

        $response = new JsonResponse($data);

        if ($request->query->has('pretty')) {
            $response->setEncodingOptions(JSON_PRETTY_PRINT);
        }

        return $response;
    }