An example to transfer a flat json data into a tree and save it as a better json data