logoalt Hacker News

xgulfieyesterday at 5:49 PM2 repliesview on HN

Are you denying what I've seen with my own eyes? I am saying it was an object like this:

{ "//":"make sure these are divisible by 8", "width": 640, "height": 480 }


Replies

wincyyesterday at 6:21 PM

Not the person you’re replying to but you were clear in what you were describing.

It seems like they were thinking of some json parsers that’ll ignore just straight up anything after // before a new line in JSON (looking at you visual studio). So a .NET dev who has never touched anything but Visual Studio may make comments in the appsettings.json for a .NET project and it made all my command line parsers throw errors. Thanks Microsoft.

hutattedonmyarmtoday at 10:48 AM

Oooh, I misunderstood. I thought you were seeing this: https://jsonc.org/