Created MimeType helper
Add support for JSON requests