Fix legacy requests for session lists as JSON

New code should use the HTTP API for such requests.
Merge branch 'session_view_json'

* session_view_json:
  Fix legacy requests for session lists as JSON