Transform NCDU JSON output file to hierarchical json data like flare.json [d3 example file]
I want to convert the NCDU json file (https://dev.yorhel.nl/ncdu/jsonfmt) to a hierarchical json that can be imported in D3.js using D3.json()
. Here is the D3 sample file flare.json (https://raw.githubusercontent.com/d3/d3-hierarchy/main/test/data/flare.json).