Added error handling when parsing JSON