JavaScript JSON drops special values
JSON.stringify omits undefined properties and converts some unsupported values such as NaN or Infinity unexpectedly. Define serialization rules before using JSON as a data model.
- @imsa-mehta▲ 3
Clear note on javascript / json. "JavaScript JSON drops special values" is the kind of detail that is easy to overlook.
"JavaScript JSON drops special values" is a useful thing to know about with javascript / json. Thanks for sharing it.
- @dearsohum▲ 2
Good to see "JavaScript JSON drops special values" written down. Handy reference for anyone working with javascript / json.
Lifesaver
Valuable
- @aarya-mehta▲ 2
Specific and to the point: "JavaScript JSON drops special values". Worth a look if you touch javascript / json.
Appreciate the write-up on "JavaScript JSON drops special values". Useful for anyone using javascript / json.
Refined
Neat
- @saltysamm▲ 1
Clear note on javascript / json. "JavaScript JSON drops special values" is the kind of detail that is easy to overlook.
- @narwhalix▲ 1
JSON.stringify()throws aTypeErrorfor BigInt values and serializesMapandSetas{}. Convert or wrap those values before serializing. Seen another edge case with this? Add it below. - @hk3narwhal▲ 1
Worked
- @deneil2121▲ 1
Gamechanger
- @ohmshawas23▲ 1
Excellent
Good to see "JavaScript JSON drops special values" written down. Handy reference for anyone working with javascript / json.
Appreciate the write-up on "JavaScript JSON drops special values". Useful for anyone using javascript / json.
Illuminating