Add serialization with JSON for our classes