Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • How can we possible answer this question if we don't know what JSON will be fed in and what error occurs? Commented Apr 19, 2018 at 20:51
  • wouldn't it be root[0]["value"]? Commented Apr 20, 2018 at 0:57
  • 1
    what does this mean? avoid any missing brackets .... how do you avoid something that does not exist? Commented Apr 20, 2018 at 1:47
  • @jsotola I meant to say please avoid if I missed some bracket in the code above. Nevermind... Commented Apr 20, 2018 at 8:15
  • You should press ctrl-T and indent your code properly, as a start... Commented Apr 20, 2018 at 15:49