def NodetoJSON ( node ):

  jsonnode = BasetoJSON ( node, annotation.ANNO_NODE )

  # add custom data 
  jsonnode.addMetadata( "nodetype", node.nodetype )
  jsonnode.addMetadata( "parentid", node.parentid )
  jsonnode.addMetadata( "skeletonid", node.skeletonid )
  jsonnode.addMetadata( "radius", node.radius )

  # lists
  if ( node.children != [] ):
    jsonnode.addMetadata( "children", node.children )

  if node.location != [None, None, None]:
    jsonnode.addMetadata( "location", node.location ) 

  return jsonnode
Read from :stream and write to :target until :maxread or EOF.
dataset/ETHPy150Open neurodata/ndstore/ocpca/jsonann.py/NodetoJSON--crossover with--dataset/ETHPy150Open circuits/circuits/circuits/web/parsers/multipart.py/copy_file