Getting undefined values from JavaScript array : <p>I am getting response something like this in the form JavaScript Object </p>

<pre><code>{
    "result": [
        {
            "invoice_prefix": "INV",
            "maximum_invoice_no": "0009"
        }
    ]
}
</code></pre>

<p>I am trying to fetch the value of invoice_prefix and maximum_invoice_no
I have written result[0].maximum_invoice_no but I am getting undefined . 
I have tried a lot of other ways also but still getting undefined . Please help me and give me some hint  </p>
