Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to pretty-print the output JSON file #1

Closed
wants to merge 2 commits into from

Conversation

Projects
None yet
2 participants
@fabiocaseri
Copy link

fabiocaseri commented Mar 6, 2019

If the file exists and it's not pretty-printed, it will be pretty-printed at the first change.

- name: Add or replace 'baz' member
  jsonpatch:
    src: "test.json"
    pretty: yes
    operations:
      - op: add
        path: "/baz"
        value: "quz"
@ParticleDecay

This comment has been minimized.

Copy link
Owner

ParticleDecay commented Apr 22, 2019

I didn't see this PR until now (GH notifications are awful), but this functionality exists in the latest version of the module. Thanks for this anyway, and sorry about that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.