add .to_JSON method
update readme with .to_JSON example
Merge branch 'json'
version bump to 0.4.0