Added new option to print call graph in JSON format.