Skip to content

Commit 5c4a872

Browse files
committed
final json write mofified to help unicode mindset
1 parent 0820e21 commit 5c4a872

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

cli4/cli4.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,9 @@ def cli4(args):
282282
results = results[0]
283283

284284
if output == 'json':
285-
sys.stdout.write(json.dumps(results, indent=4, sort_keys=True) + '\n')
285+
# 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')
286288
if output == 'yaml':
287289
sys.stdout.write(yaml.safe_dump(results))
288290

0 commit comments

Comments
 (0)