Put JSON.parse/stringify in a function for clarity
Merge pull request #1 from geary/master

Put JSON.parse/stringify in a function for clarity