Unlock this challenge:
How can you return a JSON response from a controller in Symfony applications?
return new JsonResponse($data)
return $this->json($data)
All options are correct
return new Response(json_encode($data))