wip
moved json stuff to FileUtils
avoid recursion in listing a directory
functional JSON support without recursion which - as always - turned out to be a bad idea