Fixes to toJSON initializers and edges