Not a bug. If you reverse engineer our Discourse API then you can find that we use extensionless endpoints in many places. If you add the Accept: application/json header in your requests then we will treat both /directory_items and /directory_items.json endpoints in same manner.
7 Likes