json array with in array returning error ?bad string
<p>i am parsing my json string file to python and always returning error .
i used online json formatter and validators that also returning error so i want help to make my json correct and tell me error</p>

<pre><code> [{
     "sentence_id": "TR.00001",
     "sentence": {

         "text": "Bill was born 1986.",
         "annotation": {
             (1, "Bill", "bill", "NNP", "B-PERSON"),
             (2, "was", "be", "VBD", "O"),
             (3, "born", "bear", "VBN", "O"),
             (4, "1986", "BIL", "CD", "B-DATE"),
             (5, ".", ".", ".", "O"),

         },
         "relations": {
             "subject": "bill",
             "predicate": "DATE of Birth",
             "object": "1986"
         }
     }
 }, ]
</code></pre>

<p>the above is my json string you can check online validators or online json format verifier here is the part of json that returns error</p>

<pre><code>"annotation": {
    (1, "Bill", "bill", "NNP", "B-PERSON"),
    (2, "was", "be", "VBD", "O"),
    (3, "born", "bear", "VBN", "O"),
    (4, "1986", "BIL", "CD", "B-DATE"),
    (5, ".", ".", ".", "O"),
},
</code></pre>

<p>so can you please help me in sorting out the trouble of array with in array using json you can use these editors link <a href="http://www.jsoneditoronline.org/" rel="nofollow">link to json editor</a></p>

<blockquote>
  <p>expecting property name <code>,</code> error in line 8</p>
</blockquote>

<p>Your json string file is not proper it have some error ...</p>

<ol>
<li>you missed the key in annotation.</li>
<li>your value must be in capital bracket because it is an array.</li>
<li><p>you add extra comma at the end.</p>

<pre><code> [
   {
   "sentence_id" : "TR.00001",
   "sentence"  : {

            "text" : "Bill was born 1986.",
            "annotation":{
                           "1": [1,"Bill" , "bill" , "NNP" ,"B-PERSON"],
                           "2":[2, "was" , "be" , "VBD" , "O"],
                           "3": [3 , "born" , "bear" , "VBN", "O"],
                           "4":[4, "1986" , "BIL" , "CD" , "B-DATE"],   
                           "5":[5, "." , "." , ".","O"]
                          }, 
            "relations":{
                          "subject":"bill",
                          "predicate":"DATE of Birth",
                          "object":"1986"
                        }
             }
 }
]
</code></pre></li>
</ol>

<p>That means your annotation section must be like this:</p>

<pre><code>"annotation":{
              "1": [1,"Bill" , "bill" , "NNP" ,"B-PERSON"],
              "2":[2, "was" , "be" , "VBD" , "O"],
              "3": [3 , "born" , "bear" , "VBN", "O"],
              "4":[4, "1986" , "BIL" , "CD" , "B-DATE"],   
              "5":[5, "." , "." , ".","O"]
             },
</code></pre>

javascript php python arrays json