When null
is passed to JSON.parse
, it returns null without any explanation in the documentation. Is there a specific reason for this behavior?
Some other things to consider:
- This might be related to type conversion, as even passing
JSON.parse("null")
results in null. However, is this detail explicitly stated anywhere?