There are 2 main ways how you can “force” CakePHP to return e.g. a JSON instead of HTML:
Resource Routes (what you are referring to)
JSON View via Accept HTTP Header
What you are referring to is Resource Routes, so something like http://localhost/recipes.json
As you can see it has a .json at the end (what the documentation refers to as .format)
So by default http://localhost/recipes.json would call the index method of the RecipesController and return a json (because of the .json ending in the URL)
This does NOT require your client to send a Accept HTTP header.