I have thousands of JSON files and I need those files to import to SQL Server tables. We are using SQL Server 2014. I have given the sample data from the json file. It would be great if someone can help me in flattening the data into csv or xlsx.
The challenge here is, I need to parse the JSON data into tables with column name and values. It has to loop through n number of times , if the file has n number of nodes
Sample Jason Data:
{
    "RRC-TAPE-RECORD-ID": "01",
    "WB-API-CNTY": "003",
    "WB-API-UNIQUE": "39808",
    "WB-NXT-AVAIL-SUFFIX": "0",
    "WB-NXT-AVAIL-HOLE-CHGE-NBR": "0",
    "WB-FIELD-DISTRICT": "0",
    "WB-RES-CNTY-CODE": "3",
    "WB-ORIG-COMPL-CC": "",
    "WB-ORIG-COMPL-CENT": "0",
    "WB-ORIG-COMPL-YY": "0",
    "WB-ORIG-COMPL-MM": "0",
    "WB-ORIG-COMPL-DD": "0",
    "WB-TOTAL-DEPTH": "0",
    "WB-VALID-FLUID-LEVEL": "0",
    "WB-CERT-REVOKED-CC": "0",
    "WB-CERT-REVOKED-YY": "0",
    "WB-CERT-REVOKED-MM": "0",
    "WB-CERT-REVOKED-DD": "0",
    "WB-CERTIFICATION-DENIAL-CC": "0",
    "WB-CERTIFICATION-DENIAL-YY": "0",
    "WB-CERTIFICATION-DENIAL-MM": "0",
    "WB-CERTIFICATION-DENIAL-DD": "0",
    "WB-DENIAL-REASON-FLAG": "",
    "WB-ERROR-API-ASSIGN-CODE": "",
    "WB-REFER-CORRECT-API-NBR": "0",
    "WB-DUMMY-API-NUMBER": "339808",
    "WB-DATE-DUMMY-REPLACED": "0",
    "WB-NEWEST-DRL-PMT-NBR": "613876",
    "WB-CANCEL-EXPIRE-CODE": "",
    "WB-EXCEPT-13-A": "N",
    "WB-FRESH-WATER-FLAG": "N",
    "WB-PLUG-FLAG": "N",
    "WB-PREVIOUS-API-NBR": "0",
    "WB-COMPLETION-DATA-IND": "N",
    "WB-HIST-DATE-SOURCE-FLAG": "0",
    "WB-EX14B2-COUNT": "0",
    "WB-DESIGNATION-HB-1975-FLAG": "0",
    "WB-DESIGNATION-EFFEC-CC": "0",
    "WB-DESIGNATION-EFFEC-YY": "0",
    "WB-DESIGNATION-EFFEC-MM": "0",
    "WB-DESIGNATION-REVISED-CC": "0",
    "WB-DESIGNATION-REVISED-YY": "0",
    "WB-DESIGNATION-REVISED-MM": "0",
    "WB-DESIGNATION-LETTER-CC": "0",
    "WB-DESIGNATION-LETTER-YY": "0",
    "WB-DESIGNATION-LETTER-MM": "0",
    "WB-DESIGNATION-LETTER-DD": "0",
    "WB-CERTIFICATION-EFFEC-CC": "0",
    "WB-CERTIFICATION-EFFEC-YY": "0",
    "WB-CERTIFICATION-EFFEC-MM": "0",
    "WB-WATER-LAND-CODE": "L",
    "WB-TOTAL-BONDED-DEPTH": "0",
    "WB-OVERRIDE-EST-PLUG-COST": "0",
    "WB-SHUT-IN-DATE": "0",
    "WB-SHUT-IN-YEAR": "0",
    "WB-SHUT-IN-MONTH": "0",
    "WB-OVERRIDE-BONDED-DEPTH": "0",
    "WB-SUBJ-TO-14B2-FLAG": "N",
    "WB-PEND-REMOVAL-14B2-FLAG": "N",
    "WB-ORPHAN-WELL-HOLD-FLAG": "0",
    "RRC-TAPE-FILLER": ""
}
Thanks a lot in advance
 
     
     
    