From TextGrid To JSON

In this post we would concentrate on creating JSON output from TextGrid.

Why are we converting textgrid to JSON?

Some points about JSON(JavaScript Object Notation).

How do we convert textgrid to JSON?

How do we convert textgrid to CSV?

     python3 textgrid.py -o textgrid2csv.csv 1.TextGrid
  
      start,stop,name,tier
      0.76,2.23,asta,word
      2.9,4.5,augar,word
  

Converting CSV to JSON

         python3 parser.py -i textgrid2csv.csv -o output.json
    
    [
       {
            "tier": "word",
           "start": "0.76",
           "stop": "2.23",
           "name": "asta"
        },
       {
           "tier": "word",
           "start": "2.9",
           "stop": "4.5",
           "name": "augar"
        }
    ]