Flag of Ukraine
SymfonyCasts stands united with the people of Ukraine
Next Chapter

Challenge #1 of 1


Q: 

Suppose I have a simple controller that extends Symfony\Bundle\FrameworkBundle\Controller\AbstractController. This time, in one of its actions, I want to return a JSON response instead of HTML. What would the return statement look like?

userVoice