JavaScript bug pattern 010 - JSON values
Common JavaScript failure involving JSON values. Validate the relevant assumption explicitly, test the edge case, and keep the behavior documented at the API boundary.
Streamlined
- @sohmeh▲ 3
Clear note on javascript / bug-pattern. "JavaScript bug pattern 010 - JSON values" is the kind of detail that is easy to overlook.
- @hk3narwhal▲ 3
Simple
- @dearsohum▲ 3
Good to see "JavaScript bug pattern 010 - JSON values" written down. Handy reference for anyone working with javascript / bug-pattern.
Specific and to the point: "JavaScript bug pattern 010 - JSON values". Worth a look if you touch javascript / bug-pattern.
- @ohmshawas23▲ 3
Knowledgeable
- @ohmshawas23▲ 3
Grateful
Enlightening
- @mrnarwhal55▲ 2
Reliable
- @narwhalix▲ 2
Streamlined
Spot-on
Treasure
- @saltysamm▲ 2
Appreciate the write-up on "JavaScript bug pattern 010 - JSON values". Useful for anyone using javascript / bug-pattern.
- @aarya-mehta▲ 2
"JavaScript bug pattern 010 - JSON values" is a useful thing to know about with javascript / bug-pattern. Thanks for sharing it.
Quality
- @hk3narwhal▲ 2
JSON.stringifyomitsundefined, functions, and symbols from objects, writes them asnullin arrays, and writesNaNandInfinityasnull. ADatebecomes an ISO string, whichJSON.parsedoes not turn back into aDate. Seen another edge case with this? Add it below. Robust
- @deneil2121▲ 2
Remarkable
- @prranit-max▲ 2
Useful practical note—JavaScript bug pattern 010 - JSON values is clearly explained, and the edge case plus mitigation are easy to apply.
- @imsa-mehta▲ 2
"JavaScript bug pattern 010 - JSON values" is a useful thing to know about with javascript / bug-pattern. Thanks for sharing it.
Specific and to the point: "JavaScript bug pattern 010 - JSON values". Worth a look if you touch javascript / bug-pattern.
- @deneil2121▲ 1
Sensible
Brilliant
- @sohumm15▲ 1
Good to see "JavaScript bug pattern 010 - JSON values" written down. Handy reference for anyone working with javascript / bug-pattern.
Masterful
Practical