The environment variables can be printed by using export
or printenv
in bash, but how can we convert the output into JSON format and then store them in a variable.
↧
Export environment variables to JSON in Bash
↧