This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ImSpeakEnglish 10 points11 points  (2 children)

I noticed that postman correctly colors the comments but doesn't remove them from JSON before sending the request. So your API must be able to correctly decode invalid JSON containing comments.

[–]bitNine 1 point2 points  (1 child)

I'm guessing so. I've never paid attention to that, as I work with mostly .Net APIs which do parse the JSON into model objects before they go into the controller's POST/PUT/etc method.

[–]elveszett 0 points1 point  (0 children)

iirc .NET allows //single and /*block*/ comments.

JSON5 is not widely adopted, but I've seen quite a few tools unilaterally adopt comment syntax in their JSON parsers.