Skip to content

Accepting Quote by Douglas Crockford

“A JSON decoder MAY accept and ignore comments.” quote by Douglas Crockford
Download Open image
“A JSON decoder MAY accept and ignore comments.”

Douglas Crockford

About This Quote

Source Specification: JSON RFC 8259, 2017

A JSON parser may allow comments without affecting data parsing.

In simple terms: Comments can be ignored by JSON parsers.

Key Takeaway

Allow comments for readability, but ensure they don't alter data.

Themes

flexibility parsing standards

Mood

practical cautious

Type

technical guideline

When to use this quote

  • configuration files
  • API responses
  • debugging
  • documentation
  • data exchange

Key Concepts

JSON comments compatibility

Questions to Reflect On

  • Should you permit comments in production JSON?
  • How to handle comments across different languages?
A Different Perspective

Comments may cause incompatibility with strict parsers.

4.1 out of 5 (4 ratings)

More by Douglas Crockford

Explore all 33 Douglas Crockford quotes

More Accepting quotes

Browse all 6,522 Accepting quotes