try/catch around JSON.parse
Merge pull request #1 from jbergknoff/master

try/catch around JSON.parse