Re:Parsing JSON is a Minefield
by SamReidHughes on Monday April 23, 2018 @02:38AM
(#16900994)
Postel's Law or the "Robustness Principle" is an anti-pattern in general.
Accepting trailing commas in JSON isn't as big a deal as having two different opinions about what a valid document is. But you might think a trailing comma could indicate a hand-edited document that's missing an important field or array element.
Accepting trailing commas in JSON isn't as big a deal as having two different opinions about what a valid document is. But you might think a trailing comma could indicate a hand-edited document that's missing an important field or array element.