can now deserialize networks from JSON