generating a json file, working on how to show graph so I can determine json structure