Added support for custom JSON mimetypes