Content rep not working

Cant seem to get a content rep working. All the corrresonding template files are there, and the page exists but when i hit local.test/events.jsoni keep getting the events template in the browser rather then the raw JSON content rep.

Even if is rename events.json.phpto default.json.php i get the home page showing up rather then the JSON.

What could cause this?

Turns out there was a custom route (im working on existing project). The routes interfering with the content reperesnetations.