The JSON spec asks for whitespace after {, [ and before and after the value, but every JSON validator don't need whitespaces to consider a JSON valid and I've never seen a non-prettified JSON with whitespaces. It doesn't say they are optional, even though they clearly don't need to be there.
Conversation
Notices
-
matrix07012 :thotpatrol: :cunnyEmpire: (matrix@gameliberty.club)'s status on Thursday, 06-Apr-2023 22:32:46 JST matrix07012 :thotpatrol: :cunnyEmpire: -
Julian Groß (juliangro@social.linux.pizza)'s status on Friday, 07-Apr-2023 02:36:27 JST Julian Groß @matrix don't forget that comments are not allowed in JSON.
Since you need to be able to put comments into JSON sometimes, a lot of parsers will allow JavaScript style comments.
matrix07012 :thotpatrol: :cunnyEmpire: likes this. -
rqsd (rq@borg.social)'s status on Saturday, 15-Apr-2023 23:07:09 JST rqsd @matrix@gameliberty.club I wonder if this was added specifically for some known buggy implementation at the time
matrix07012 :thotpatrol: :cunnyEmpire: likes this.
-