Parse JSON to array in a shell script
<p>I'm trying to parse a JSON object within a shell script into an array. </p>

<p>e.g.: [Amanda, 25, <a href="http://mywebsite.com]" rel="noreferrer">http://mywebsite.com]</a></p>

<p>The JSON looks like:</p>

<pre><code>{
  "name"       : "Amanda", 
  "age"        : "25",
  "websiteurl" : "http://mywebsite.com"
}
</code></pre>

<p>I do not want to use any libraries, it would be best if I could use a regular expression or grep. I have done:</p>

<pre><code>myfile.json | grep name
</code></pre>

<p>This gives me "name"       : "Amanda". I could do this in a loop for each line in the file, and add it to an array but I only need the right side and not the entire line.</p>