DotNet Mirror
  DNM facebook   DNM Google+   DNM Twitter   

JSON editor features with Visual Studio 2013

By Ashok Nalam on 03 Mar 2014 | Category: Visual Studio | Tagged: JSON visual studio 2013 .NET 
Visual Studio 2013 Update 2 added new JSON editor(JSON file type) to Visual Studio. JSON editor features are colorization, JSON syntax validation, Outlining and Automatic brace completion.
  Discuss Add Comment   |  
Add rating Rate this resource   

Introduction

Visual Studio 2013 Update 2 added new JSON editor(JSON file type) to Visual Studio and the features are Colorization, Syntax validation, Outlining and Automatic brace completion.We will see the feature details one by one.

Feature#1 : Add New Item - JSON File:

In order to add JSON file to Web application project > Right Click > Add > New Item > Web > Markup > JSON File. It creates .json file with default one brace opened and closed.

jsonfile_visualstudio2013_addnewitem

Feature#2 : Colorization:

Once the file is opened in JSON editor, it has distinct colors to types like below

jsoneditor_colorization_visualstudio2013

Feature#3 : Syntax validation:

If we build the project, visual studio validates JSON code and provides syntax errors as warnings in Error List window. If you double click on error it takes you to exact error location with in the file. Below images shows the syntax errors with in the JSON file.

json_syntax_validation_visualstudio2013

Feature#4 : Outlining

Outlining (collapse or expanding content) is available for JSON content for easier navigation. If we have large JSON file, this feature will be more useful.

json_editor_outlining_visualstudio2013

Feature#5 : Automatic brace completion

When we type brace, bracket or quote then matching close character will be automatically inserted after the cursor.

jsoneditor_automatic_brace_completion_visualstudio2013

Change Settings

If you want to change any setting for JSON editor you can do at Tools > Options (search for json) > Text Editor > JSON.

json_tools_options_settings_visualstudio2013

Hope we can have more features from next releases.
  Discuss Add Comment    
Add rating Rate this resource   
About the Contributor
Member Since : 10 Dec 2012
Member Points (Level) : 9226  (Professional)
Location : INDIA
Home Page : http://dotnetmirror.com
About : I am admin of this site.
Rate this resource
 
Add your Comment
Name Email WebSite
Captcha Refresh


Comments (0)
No comments found, click here to add comment.
 
cheap jordans|wholesale air max|wholesale jordans|wholesale jewelry|wholesale jerseys