We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0c1004 commit 9302489Copy full SHA for 9302489
bin/jp.py
@@ -3,6 +3,7 @@
3
import sys
4
import json
5
import argparse
6
+from pprint import pformat
7
8
import jmespath
9
from jmespath import exceptions
@@ -22,7 +23,7 @@ def main():
22
23
if args.ast:
24
# Only print the AST
25
expression = jmespath.compile(args.expression)
- sys.stdout.write(str(expression))
26
+ sys.stdout.write(pformat(expression.parsed))
27
sys.stdout.write('\n')
28
return 0
29
if args.filename:
0 commit comments