better support for json mime type