1 parent 0820e21 commit 5c4a872Copy full SHA for 5c4a872
1 file changed
cli4/cli4.py
@@ -282,7 +282,9 @@ def cli4(args):
282
results = results[0]
283
284
if output == 'json':
285
- sys.stdout.write(json.dumps(results, indent=4, sort_keys=True) + '\n')
+ # sys.stdout.write(json.dumps(results, indent=4, sort_keys=True) + '\n')
286
+ json.dumps(results, sys.stdout, indent=4, sort_keys=True)
287
+ sys.stdout.write('\n')
288
if output == 'yaml':
289
sys.stdout.write(yaml.safe_dump(results))
290
0 commit comments