468060 (64) [Avatar] Offline
#1
p.191

More confusion between JSON and JavaScript objects.

According to the official documentation, d3.hierarchy() needs a JavaScript object, but not necessarily a JSON one, as claimed in the text (top of page).

The example at the bottom of the page shows a JavaScript object rather than a JSON one.
elijah.meeks (123) [Avatar] Offline
#2
You're right, I was very sloppy with how I mixed JSON and js objects. This was corrected in the final edition.