Implemented rehydration of the model and views from a JSON string.