HI version is available. Content is displayed in original English for accuracy.
Advertisement
Advertisement
⚡ Community Insights
Discussion Sentiment
100% Positive
Analyzed from 204 words in the discussion.
Trending Topics
#json#python#tool#clipboard#xml#yaml#might#copy#bash#print

Discussion (11 Comments)Read Original on HackerNews
The j2p is pretty self-evident if you know any python, and the only trick to p2j was knowing `ast.literal_eval(input_str)`.
So, copy text to clipboard, press a hotkey to popup the menu, and it'll offer options depending on the detected text. For example changing the clipboard contents to prettified (if it detects JSON, XML, HTML), or formatting a number back and forth (e.g. working with SSN's out of numerical DB entries when they prefer AAA-GG-SSSS).
[0]: https://github.com/j-brooke/FracturedJson
> yq is a portable command-line YAML, JSON, XML, CSV, TOML, HCL and properties processor