JSON Javascript highlighting in Visual Studio 2010 JSON Javascript highlighting in Visual Studio 2010 json json

JSON Javascript highlighting in Visual Studio 2010


Tools -> Options -> Text Editor -> File Extension

End your extension 'json' and select 'Script Editor' and click 'add'.

Re-open any json documents for it to take affect.


Another option is to use Text Highlighter (extention for Visual Studio 2010), which offers syntax highlighting for the following text formats:

  • .json (also offer syntax validation)
  • .bat
  • .cmd
  • .ini
  • .txt
  • .log


Great news!

In CTP2 of Visual Studio 2013 Update 2 that was added a New JSON project item and editor

enter image description here