wget https://gist.githubusercontent.com/Himura2la/c2ef40ce86b1698e1a7db8b144657912/raw/toJson.sh
chmod +x toJson.sh
./toJson.sh < file
Last active
September 11, 2024 08:53
-
-
Save Himura2la/c2ef40ce86b1698e1a7db8b144657912 to your computer and use it in GitHub Desktop.
Convert text file to JSON string
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sed 's/\x0D$//' | jq -MRsc . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment