Merge pull request #4 from allknowingfrog/master

basic functions for reading and writing json
Merge 'upstream/master'
merged upstream