Takes json from stdin and creates filetrees from it