handle parsing errors when persisting a model
Merge pull request #1 from jdoconnor/bad-json-fix

handle parsing errors when persisting a model