Type %
in the explorer mode.
:%!jq '.'
or
:.w !jq
reference: https://stackoverflow.com/a/7025184
See :help :w_c
reference: https://stackoverflow.com/a/946241
before:
<tag> content </tag>
:dit
(it
is for "inner tag block")
after:
<tag></tag>