Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
You should refresh the pageBlockTable after fetching the data using reRender attribute in commandButton. In order to refresh add id to the pageblock button and and then use that id in the reRender attribute
ok. in that case just check whether the json received is in correct format using json validator service found online. also only parse the response if the status code is 200
Did you check the JSON request, since it might be possible there is no second pair and you have reached the object end. Can u also post the JSON response, which you receiving before parsing ?