title: Converting JSON object to CSV format in JavaScript
body: <p>I am trying to convert a JavaScript object set in to CSV format</p>
  <p>You can get the idea about my Javascript object, if you put it in online JSON parser <a href="https://jsonformatter.org/json-parser" rel="noreferrer">https://jsonformatter.org/json-parser</a></p>
  <p>This is how I tried to work it out... but it flopped.. <a href="http://jsfiddle.net/fHQzC/11/" rel="noreferrer">http://jsfiddle.net/fHQzC/11/</a></p>
  <p>I am trying to take the whole values corresponding to the value &quot;term&quot;  and corresponding title in to CSV format</p>
  <p>The expected output for is like</p>
  <pre><code>Time,Dec 9, 2012 
  News,Germany,election, Egypt,Revolution, Japan, Earthquake
  Person,Obama, Beckham
  Title,Pearce Snubs Beckham                                
  Time,Dec 5, Birthday
  Person, Lebron James
  News,Italy,Euro 2012 Final
  Title-Heats National Champions
                                
  </code></pre>
  <p>and is it possible to download the csv file in excel sheet the one I found in Stackoverflow was not really useful me...</p>