Saturday, May 7, 2022

Re: Json inline format

json_pp, or: perl -MJSON -0e 'print to_json decode_json(<>),{pretty=>1}'

Use {pretty=>1,canonical=>1} if you want sorted keys.

On Sat, May 07, 2022 at 04:01:55AM -0700, Ni Va wrote:
>Hi,
>
>How can i format inline json file to multines without python tool ?
>
>Thank you

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/Ynakzf6GBNoSVfSj%40rainslide.net.

No comments: