Enforce a .json extension (in DEV mode only).

Also changed the only example I found of it not doing so.

This is needed by some changes I am making to the routing.