Visual Studio 2015 add JSON file

I have an MVC Porject WebApplication. In the App_Data folder, I want to add a json file. But Visual Studio does not offer me to add a Json file, even if I want to add a new element.

enter image description here

How to add json? Just use plain text file and rename it as json?

+4
source share
2 answers

You can find it online. Consider using the top right search bar, if you cannot find anything, if it does not appear in the search, you cannot do it.

JSON:

enter image description here

+5
source

Yes, you just change the file extension to .json Adding a Product.json File

+1
source

Source: https://habr.com/ru/post/1611266/


All Articles