Added JSON output and removed ROOT from the output