'Converts the data in the node to a dict representation of json'

def toJson(self):

    thisJson = {'name': self.name, 'id': self.id, 'depth': self.depth, 'dist': self.length}
    thisJson = self.addChildrenToJson(thisJson)
    thisJson = self.addMiscToJson(thisJson)
    return thisJson
