Added Json serialization for easier format changes. Persisted classes
had to be changed to be easier to serialize.