Added getter/setter for payload
Moved payload assignment out of finally block in json parse