tango: split the json endpoint into two decorators, one for ensuring key existence, and one for ensuring key type
tango: make the json mimetype const