---
title: "Meaning & Key Takeaway of: A JSON decoder MAY accept and ignore…"
description: "\"A JSON decoder MAY accept and ignore comments.\" — Douglas Crockford"
image: "https://sms4smile.com/quotes/i/21f/douglas-crockford-19095_accepting_a-json-decoder-may-accept-and-ignore-com_2381681.png"
---

#  A JSON decoder MAY accept and ignore comments.

![“A JSON decoder MAY accept and ignore comments.” quote by Douglas Crockford](https://sms4smile.com/quotes/i/21f/douglas-crockford-19095_accepting_a-json-decoder-may-accept-and-ignore-com_2381681.png)   [Download](https://sms4smile.com/quotes/i/21f/douglas-crockford-19095_accepting_a-json-decoder-may-accept-and-ignore-com_2381681.png) [Open image](https://sms4smile.com/quotes/i/21f/douglas-crockford-19095_accepting_a-json-decoder-may-accept-and-ignore-com_2381681.png)

> “A JSON decoder MAY accept and ignore comments.”

[Douglas Crockford](https://sms4smile.com/quotes/author/douglas-crockford/)

## About This Quote

This interpretation was drafted with AI assistance. It is one reading of the quote, not the author's own explanation.

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.

★ ★ ★ ★ ★   No ratings yet

[Inspirational](https://sms4smile.com/quotes/about/inspirational/)

## Related quotes

> [The British press have written some nasty and spiteful things about the way I look which used to affect me quite badly when it…](https://sms4smile.com/quotes/melanie-chisholm/the-british-press-have-written-some-nasty-and-spiteful-things-about/)

[Melanie Chisholm](https://sms4smile.com/quotes/author/melanie-chisholm/)

> [A.I.R.Accept.Ignore. Refocus. We all need air](https://sms4smile.com/quotes/sharon-davies/a-i-r-accept-ignore-refocus-we-all-need-air/)

Sharon Davies

> [I need this&lt;3](https://sms4smile.com/quotes/anonymous/i-need-this-3/)

[Anonymous](https://sms4smile.com/quotes/author/anonymous/)

> [Ya know itt.](https://sms4smile.com/quotes/patience/ya-know-itt/)

Patience

> [I don't really comment on my personal life because I feel like any comment at all is opening up a whole can of worms.…](https://sms4smile.com/quotes/josh-hartnett/i-don-t-really-comment-on-my-personal-life-because-i-feel-like-any/)

[Josh Hartnett](https://sms4smile.com/quotes/author/josh-hartnett/)

> [I won the seat of Oxley largely on an issue that has resulted in me being called a racist. That issue related to my…](https://sms4smile.com/quotes/pauline-hanson/i-won-the-seat-of-oxley-largely-on-an-issue-that-has-resulted-in-me/)

[Pauline Hanson](https://sms4smile.com/quotes/author/pauline-hanson/)

> [In luggage claim at the Minneapolis airport, the guy came up to me and said, "Maybe you're wrong, maybe stories do matter." I wrote…](https://sms4smile.com/quotes/kate-dicamillo/in-luggage-claim-at-the-minneapolis-airport-the-guy-came-up-to-me-and/)

[Kate DiCamillo](https://sms4smile.com/quotes/author/kate-dicamillo/)

> [Haha:D Haha:D](https://sms4smile.com/quotes/anonymous/haha-d-haha-d/)

[Anonymous](https://sms4smile.com/quotes/author/anonymous/)

> [People should say 'no comment' more often. No comment! I love no comment. Let's have more no comment.](https://sms4smile.com/quotes/conan-o-brien/people-should-say-no-comment-more-often-no-comment-i-love-no-comment/)

[Conan O'Brien](https://sms4smile.com/quotes/author/conan-o-brien/)

> [The God in whose hands are all our days and ways, did cast into my hand one day a book of Martin Luthers; it…](https://sms4smile.com/quotes/john-bunyan/the-god-in-whose-hands-are-all-our-days-and-ways-did-cast-into-my/)

[John Bunyan](https://sms4smile.com/quotes/author/john-bunyan/)

> [“Dude, now you’re flirting? Even to my own ears, my comment sounds suggestive. The sad thing is, it was meant that way. There are…](https://sms4smile.com/quotes/m-leighton/dude-now-you-re-flirting-even-to-my-own-ears-my-comment-sounds/)

[M. Leighton](https://sms4smile.com/quotes/author/m-leighton/)

> [The talk shows in the States want celebrities, not authors. In France, it is different; writers are called upon to comment on everything. They…](https://sms4smile.com/quotes/edmund-white/the-talk-shows-in-the-states-want-celebrities-not-authors-in-france/)

[Edmund White](https://sms4smile.com/quotes/author/edmund-white/)

> [Chilln nd txtin lol](https://sms4smile.com/quotes/anonymous/chilln-nd-txtin-lol/)

[Anonymous](https://sms4smile.com/quotes/author/anonymous/)

> [I think people are more likely to comment on a thin person's weight then the weight of an over weight person. Double standard?](https://sms4smile.com/quotes/anonymous/i-think-people-are-more-likely-to-comment-on-a-thin-person-s-weight/)

[Anonymous](https://sms4smile.com/quotes/author/anonymous/)

> [I remember that the bass was turned up slightly more on the mix from last week, and I thought that was good - or…](https://sms4smile.com/quotes/mark-ronson/i-remember-that-the-bass-was-turned-up-slightly-more-on-the-mix-from/)

[Mark Ronson](https://sms4smile.com/quotes/author/mark-ronson/)

## More by Douglas Crockford

> [Progress comes from finding better ways to do things. Don't be afraid of innovation. Don't be afraid of ideas that are not your own.](https://sms4smile.com/quotes/douglas-crockford/progress-comes-from-finding-better-ways-to-do-things-don-t-be-afraid/)

[Douglas Crockford](https://sms4smile.com/quotes/author/douglas-crockford/)

> [“If you want to learn more about the bad parts and how to use them badly, consult any other JavaScript book.”](https://sms4smile.com/quotes/douglas-crockford/if-you-want-to-learn-more-about-the-bad-parts-and-how-to-use-them/)

[Douglas Crockford](https://sms4smile.com/quotes/author/douglas-crockford/)

> [JavaScript is the only language that I'm aware of that people feel they don't need to learn before they start using it.](https://sms4smile.com/quotes/douglas-crockford/javascript-is-the-only-language-that-i-m-aware-of-that-people-feel/)

[Douglas Crockford](https://sms4smile.com/quotes/author/douglas-crockford/)

> [Most programming languages contain good parts and bad parts. I discovered that I could be better programmer by using only the good parts and…](https://sms4smile.com/quotes/douglas-crockford/most-programming-languages-contain-good-parts-and-bad-parts-i/)

[Douglas Crockford](https://sms4smile.com/quotes/author/douglas-crockford/)

> [ “suppress empty strings in the output array when the separator is a regular expression: var f = '\|a\|b\|c\|'.split(/\\\|/); // f is \['a', 'b', 'c'\]… ](https://sms4smile.com/quotes/douglas-crockford/suppress-empty-strings-in-the-output-array-when-the-separator-is-a/)

[Douglas Crockford](https://sms4smile.com/quotes/author/douglas-crockford/)

> [People who use Class will never understand all the crap they are doing.](https://sms4smile.com/quotes/douglas-crockford/people-who-use-class-will-never-understand-all-the-crap-they-are-doing/)

[Douglas Crockford](https://sms4smile.com/quotes/author/douglas-crockford/)

> [“Few classical programmers found prototypal inheritance to be acceptable, and classically inspired syntax obscures the language’s true prototypal nature. It is the worst of…](https://sms4smile.com/quotes/douglas-crockford/few-classical-programmers-found-prototypal-inheritance-to-be/)

[Douglas Crockford](https://sms4smile.com/quotes/author/douglas-crockford/)

> [Computer programs are the most complex things that humans make.](https://sms4smile.com/quotes/douglas-crockford/computer-programs-are-the-most-complex-things-that-humans-make/)

[Douglas Crockford](https://sms4smile.com/quotes/author/douglas-crockford/)

> [The good thing about reinventing the wheel is that you can get a round one.](https://sms4smile.com/quotes/douglas-crockford/the-good-thing-about-reinventing-the-wheel-is-that-you-can-get-a/)

[Douglas Crockford](https://sms4smile.com/quotes/author/douglas-crockford/)

> [Good architecture is necessary to give programs enough structure to be able to grow large without collapsing into a puddle of confusion.](https://sms4smile.com/quotes/douglas-crockford/good-architecture-is-necessary-to-give-programs-enough-structure-to/)

[Douglas Crockford](https://sms4smile.com/quotes/author/douglas-crockford/)

> [“undefined and NaN are not constants. They are global variables, and you can change their values. That should not be possible, and yet it…](https://sms4smile.com/quotes/douglas-crockford/undefined-and-nan-are-not-constants-they-are-global-variables-and-you/)

[Douglas Crockford](https://sms4smile.com/quotes/author/douglas-crockford/)

> [Programmers are as emotional and irrational as normal people](https://sms4smile.com/quotes/douglas-crockford/programmers-are-as-emotional-and-irrational-as-normal-people/)

[Douglas Crockford](https://sms4smile.com/quotes/author/douglas-crockford/)

> [Generally, the craft of programming is the factoring of a set of requirements into a a set of functions and data structures.](https://sms4smile.com/quotes/douglas-crockford/generally-the-craft-of-programming-is-the-factoring-of-a-set-of/)

[Douglas Crockford](https://sms4smile.com/quotes/author/douglas-crockford/)

> [I have been writing JavaScript for 8 years now, and I have never once found need to use an uber function. The super idea…](https://sms4smile.com/quotes/douglas-crockford/i-have-been-writing-javascript-for-8-years-now-and-i-have-never-once/)

[Douglas Crockford](https://sms4smile.com/quotes/author/douglas-crockford/)

> [Things don't change because people change their minds. They change because they retire or die.](https://sms4smile.com/quotes/douglas-crockford/things-don-t-change-because-people-change-their-minds-they-change/)

[Douglas Crockford](https://sms4smile.com/quotes/author/douglas-crockford/)

[Explore all 33 Douglas Crockford quotes ](https://sms4smile.com/quotes/author/douglas-crockford/)

## More Accepting quotes

> [From Augustine down, theologians have tried to compel people to accept their special interpretation of the Scripture, and the tortures of the inquisition, the…](https://sms4smile.com/quotes/matilda-joslyn-gage/from-augustine-down-theologians-have-tried-to-compel-people-to-accept/)

[Matilda Joslyn Gage](https://sms4smile.com/quotes/author/matilda-joslyn-gage/)

> [Laughing, laughing, laughing, laughing! It is the jester! A voice from the Void, to cheer poor Cicero! I accept your gift, dearest Night Mother.…](https://sms4smile.com/quotes/marcus-tullius-cicero/laughing-laughing-laughing-laughing-it-is-the-jester-a-voice-from-the/)

[Marcus Tullius Cicero](https://sms4smile.com/quotes/author/marcus-tullius-cicero/)

> [This duo inside of me causes the perfect opportunity to live and learn twice as fast as those who choose to accept simplicity.](https://sms4smile.com/quotes/tupac-shakur/this-duo-inside-of-me-causes-the-perfect-opportunity-to-live-and/)

[Tupac Shakur](https://sms4smile.com/quotes/author/tupac-shakur/)

> [There is something about the South that accepts the supernatural. If you don't accept it and you're having a conversation with someone who does,…](https://sms4smile.com/quotes/alice-englert/there-is-something-about-the-south-that-accepts-the-supernatural-if/)

[Alice Englert](https://sms4smile.com/quotes/author/alice-englert/)

> [We only enter into the full life if our faith gives thanks. Because how else do we accept His free gift of salvation if…](https://sms4smile.com/quotes/ann-voskamp/we-only-enter-into-the-full-life-if-our-faith-gives-thanks-because/)

[Ann Voskamp](https://sms4smile.com/quotes/author/ann-voskamp/)

> [Don't be bitter. Everybody suffers. If you can accept your suffering then you will understand other people better. Be grateful for pain. Love life.](https://sms4smile.com/quotes/stephen-colbert/don-t-be-bitter-everybody-suffers-if-you-can-accept-your-suffering/)

[Stephen Colbert](https://sms4smile.com/quotes/author/stephen-colbert/)

> [It takes an unusually philosophic mind to accept that all one’s suffering might be to no end, really, in the larger scheme of things.](https://sms4smile.com/quotes/anonymous/it-takes-an-unusually-philosophic-mind-to-accept-that-all-one-s/)

[Anonymous](https://sms4smile.com/quotes/author/anonymous/)

> [No nation being under another nation can accept gifts, and kick at the responsibility attached to those gifts, imposed by the conquering nation.](https://sms4smile.com/quotes/mahatma-gandhi/no-nation-being-under-another-nation-can-accept-gifts-and-kick-at-the/)

[Mahatma Gandhi](https://sms4smile.com/quotes/author/mahatma-gandhi/)

> [Even with clothing naked animals, there were people who wanted to send in money. A woman in Santa Barbara, California, sent a $40,000 check.…](https://sms4smile.com/quotes/alan-abel/even-with-clothing-naked-animals-there-were-people-who-wanted-to-send/)

[Alan Abel](https://sms4smile.com/quotes/author/alan-abel/)

> [Society understands the architecture of academia and knows there are relevant qualifications in different fields, and the media accepts the idea of specialisations and…](https://sms4smile.com/quotes/jay-griffiths/society-understands-the-architecture-of-academia-and-knows-there-are/)

[Jay Griffiths](https://sms4smile.com/quotes/author/jay-griffiths/)

> [Whatever your conscious mind assumes and believes to be true, your subconscious mind will accept and bring to pass. Believe in good fortune, divine…](https://sms4smile.com/quotes/joseph-murphy/whatever-your-conscious-mind-assumes-and-believes-to-be-true-your/)

[Joseph Murphy](https://sms4smile.com/quotes/author/joseph-murphy/)

> [Losing someone is easy, but accepting it is hard.](https://sms4smile.com/quotes/anonymous/losing-someone-is-easy-but-accepting-it-is-hard/)

[Anonymous](https://sms4smile.com/quotes/author/anonymous/)

> [… and so he tried to accept the ache in his heart as what Dr. Larch would call the common symptoms of normal life.](https://sms4smile.com/quotes/john-irving/and-so-he-tried-to-accept-the-ache-in-his-heart-as-what-dr-larch/)

[John Irving](https://sms4smile.com/quotes/author/john-irving/)

> [I think what was special about 'Music by Prudence' was the classic story of the title subject's life path - from being an outcast…](https://sms4smile.com/quotes/roger-ross-williams/i-think-what-was-special-about-music-by-prudence-was-the-classic/)

[Roger Ross Williams](https://sms4smile.com/quotes/author/roger-ross-williams/)

> [As my films are born at the moment when they are reflected into another person's mind and memories, there are no misconceptions. I totally…](https://sms4smile.com/quotes/pirjo-honkasalo/as-my-films-are-born-at-the-moment-when-they-are-reflected-into/)

[Pirjo Honkasalo](https://sms4smile.com/quotes/author/pirjo-honkasalo/)

Browse all 6,788 Accepting quotes

```json
{
    "@context": "https://schema.org",
    "@graph": [
        {
            "@type": "Quotation",
            "text": "A JSON decoder MAY accept and ignore comments.",
            "creator": {
                "@type": "Person",
                "name": "Douglas Crockford"
            },
            "isPartOf": {
                "@id": "https://sms4smile.com/quotes/#website"
            },
            "url": "https://sms4smile.com/quotes/douglas-crockford/a-json-decoder-may-accept-and-ignore-comments/",
            "about": {
                "@type": "Thing",
                "name": "Accepting"
            },
            "@id": "https://sms4smile.com/quotes/douglas-crockford/a-json-decoder-may-accept-and-ignore-comments/#quotation",
            "image": {
                "@type": "ImageObject",
                "@id": "https://sms4smile.com/quotes/i/21f/douglas-crockford-19095_accepting_a-json-decoder-may-accept-and-ignore-com_2381681.png",
                "contentUrl": "https://sms4smile.com/quotes/i/21f/douglas-crockford-19095_accepting_a-json-decoder-may-accept-and-ignore-com_2381681.png",
                "url": "https://sms4smile.com/quotes/i/21f/douglas-crockford-19095_accepting_a-json-decoder-may-accept-and-ignore-com_2381681.png",
                "width": 1080,
                "height": 1080,
                "caption": "“A JSON decoder MAY accept and ignore comments.” — Douglas Crockford",
                "creditText": "SMS4Smile Quotes",
                "creator": {
                    "@id": "https://sms4smile.com/quotes/#organization"
                }
            }
        },
        {
            "@type": "BreadcrumbList",
            "itemListElement": [
                {
                    "@type": "ListItem",
                    "position": 1,
                    "name": "Home",
                    "item": "https://sms4smile.com/"
                },
                {
                    "@type": "ListItem",
                    "position": 2,
                    "name": "Quotes",
                    "item": "https://sms4smile.com/quotes/"
                },
                {
                    "@type": "ListItem",
                    "position": 3,
                    "name": "Douglas Crockford",
                    "item": "https://sms4smile.com/quotes/author/douglas-crockford/"
                },
                {
                    "@type": "ListItem",
                    "position": 4,
                    "name": "A JSON decoder MAY accept and...",
                    "item": "https://sms4smile.com/quotes/douglas-crockford/a-json-decoder-may-accept-and-ignore-comments/"
                }
            ],
            "@id": "https://sms4smile.com/quotes/douglas-crockford/a-json-decoder-may-accept-and-ignore-comments/#breadcrumb"
        },
        {
            "@type": "WebSite",
            "@id": "https://sms4smile.com/quotes/#website",
            "name": "SMS4Smile Quotes",
            "url": "https://sms4smile.com/quotes/",
            "publisher": {
                "@id": "https://sms4smile.com/quotes/#organization"
            }
        },
        {
            "@type": "Organization",
            "@id": "https://sms4smile.com/quotes/#organization",
            "name": "SMS4Smile Quotes",
            "url": "https://sms4smile.com/quotes/",
            "logo": {
                "@type": "ImageObject",
                "url": "https://sms4smile.com/quotes/wp-content/themes/sq/assets/icons/icon-512.png",
                "width": 512,
                "height": 512
            }
        }
    ]
}
```
