Is there a way to format jsonpath output?

Dhawan Shringi:
Is there a way to format jsonpath output?

Edith Puclla:
i found this: https://stackoverflow.com/questions/36211618/how-to-parse-json-format-output-of-kubectl-get-pods-using-jsonpath
Let me know if this is useful :slightly_smiling_face:

Dhawan Shringi:
Thanks Edith, I have gone through the post however what I was trying to print is the output that you get when you use -o json, i.e. pretty print.

1 Like