That one works for me too. I’ve been ignoring the .json suffix and just using the header as documented
Instead of sending API requests to
/categories.jsonyou may also send them to/categoriesand add anAccept: application/jsonheader to the request to get the JSON response. Sending requests with theAcceptheader is necessary if you want to use URLs for related endpoints returned by the API, such as pagination URLs. These URLs are returned without the.jsonprefix so you need to add the header in order to get the correct response format.
but maybe I need to change my code to use it.