Added json-mode for JSON files