NaN, null and undefined in JSON: what serialises to what

JSON has null. JavaScript has null, undefined and NaN. Python has None. This is the table of what survives each conversion — and the traps everyone hits.