Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I comment out lines inisde json file? [duplicate]

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.

like image 222
www.diwatu.com Avatar asked Jan 19 '15 17:01

www.diwatu.com


1 Answers

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", *@
like image 195
stovroz Avatar answered Nov 02 '22 06:11

stovroz