How can I comment out lines inisde json file?

15,131

Is it an asp.net project (you mention you're using Visual Studio)? If so you could store the json data as a view and use server side commenting out, e.g. in razor:

@* "path": "yyyy", *@
Share:
15,131
www.diwatu.com
Author by

www.diwatu.com

A software developer with 20+ years experience of C, C++, C# and JavaScript etc, with rich GIS, GPS, Map, data visualization and data analytic background. WCF + ExtJS is my favorite job!

Updated on November 27, 2022

Comments

  • www.diwatu.com
    www.diwatu.com over 1 year

    Some date is stored in a json file, how can I comment out some lines like below?

    [
        {
            "id":"aaaa",
        //  "path": "xxxx",
            "path": "yyyy"
        },
       {
           "id":"bbbb",
           "path": "cccc"
        }
    ]
    

    My IDE is Visual Studio.