Skip to content

Commit 86f64d5

Browse files
committed
fix json output
1 parent d6de173 commit 86f64d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

knock/knockpy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ def output(results, json_output=None):
360360
return None
361361

362362
if json_output:
363-
print (results)
363+
json.dump(results, sys.stdout)
364364
sys.exit()
365365

366366
if isinstance(results, dict):

0 commit comments

Comments
 (0)