For an <input type="file">
neither Firefox(34.0.5) nor Chrome(39.0.2171.95 (64-bit)) can determine a .json file's type. You can try it with the following code:
<!DOCTYPE html>
<html>
<head>
<title>Test</title>
</head>
<body>
<input type="file" id="file_input" name="files[]" multiple />
<script type='text/javascript' src='lib/jquery-1.9.1.js'></script>
<script>
$("#file_input").on('change', function(evt) {
var files = evt.target.files;
//files is a FileList of File objects.
var i;
var len = files.length;
for (i=0; i < len; ++i) {
console.log(files[i]);
console.log("Type: " + files[i].type);
}
})
</script>
</body>
</html>