d3json: make output more similar to pre-rewrite version