My first assumption is maybe JSON.parse is returning a value of undefined, but I was having an issue with that earlier where the actual error message spoke about "JSON.pars