return json content in /sha1 when requested content-type is application/json
contains definition of request_wants_html and JSONEncoder
renders list of dicts