Decided to represent nodes and links in models instead of fighting with the json all the time.