title: How to get particular key and value from json object to store in database?
body: <pre><code>{
      "purchaseorder": {
          "Meta": [{
              "InterchangeControlNumber": ["000004010"],
              "GroupControlNumber": ["833"],
              "DocumentControlNumber": ["5952"],
              "InterchangeSenderID": ["009483355"],
              "InterchangeReceiverID": ["076627454"],
              "GroupSenderID": ["009483355"],
              "GroupReceiverID": ["076627454"]
          }],
          "header": [{
              "address": [{
                  "home": [{
                      "hno": ["134/123"],
                      "contact": ["898944343"],
                      "pin": ["272272"],
                      "district": ["telangana"]
                  }],
                  "office": [{
                      "hno": ["456/789"],
                      "contact": ["440838272"],
                      "pin": ["55833"],
                      "district": ["delhi"]
                  }]
              }]
          }]
      }
  }
  </code></pre>
  
  <p>I have JSON data like the above.</p>
  
  <p>I want to store it in database as meta, home and office as table names, with the respective keys as column and value as cell data.</p>
  
  <p>How do I the data from the JSON in node.js or JavaScript?</p>
  
  <p>The JSON data can be any thing. I can pass the name of required table to be created, it should be automated.</p>