Lines Matching defs:json
9 # ./accumulate.py -f <format> -t <template-name> < input.json > output
11 # <format> is one of "csv", "json", and "tree". If "csv" or "json" is given,
12 # accumulate.py dumps a similar file to "dmprof csv|json". If "tree" is given,
15 # <template-name> is a label in templates.json.
18 import json
192 json.dump(json_root, output, indent=2, sort_keys=True)
204 if output_format not in ['csv', 'json', 'tree']:
212 data = json.loads(cat_input.read(), object_pairs_hook=OrderedDict)
242 elif output_format == 'json':
261 help='Specify the output format: csv, json or tree.')