I like to create an Api folder inside my app folder, where I have a V1 folder and inside it, I have a Controllers folder where I keep all of my JSON responses. Same goes with the routes, I put them into a separate routes file in Api/V1.
I wanna keep them separate because I don't wanna clutter the controllers which return views with additional if checks. It's gonna be easier for building APIs later on.