Fixing bug where the JSON parsing was failing.