0

I'm running a command that contacts a server, and the server outputs JSON through the command to get the data. How do I get the data from the JSON output and use the data? I'm running the command from the command line in Linux.

For example:

~/jason$:command xyz
{
  name: "mary"
  eyecolor: "red"
}

I thought that maybe putting the command in a variable would put me in the right direction but I don't know where to go from there:

result=$(command xyz)
# ...
oston
  • 1
  • 1

0 Answers0