Reverted to Pickle serialziation for merge into master branch. JSON still unstable and requires more testing.