rudimentary root plotting script with JSON file as input