Recreate a tree of json files from a REST service.