Updates the route to list data products to accept json requests

As part of M047, I'm updating an existing semi-RESTFUL endpoint to accept a JSON request. Based on the comments, it looks like this was in the making but not fully implemented, this pull request should bridge that gap.
It's worth to note here that, I qualify a JSON request as containing the string 'json' in the Accept headers.