Added JSON deserialization.