set correct mime type for json queries