Revise JSON persistence
Serialize directly to the output stream
Merge pull request #69 from jlewin/JsonPersistence

Revised Json Persistence - love it thank you!