Fix to get the values from the JSONObject otherwise you receive an index...

... out of range error.

https://postmedia.tpondemand.com/entity/2394