Make all nodes toJSONable.