MARMOTTA-562: json if html is not requested