def SkeletontoJSON ( skeleton ):

  jsonskeleton = BasetoJSON ( skeleton, annotation.ANNO_SKELETON )

  # customize
  jsonskeleton.addMetadata( "skeletontype", skeleton.skeletontype )
  jsonskeleton.addMetadata( "rootnode", skeleton.rootnode ) 

  return jsonskeleton
convert a skeleton to json
dataset/ETHPy150Open neurodata/ndstore/ocpca/jsonann.py/SkeletontoJSON