The new registration information comes as string formatted as JSON. You need to create a file `object_to_json.py` that will have the following functions inside:
1.`create_new_user` that will receive a `dict` and will return a new object of the class `User` provided below. To be valid, the input `dict` must have a `username` key and a `email` key to be valid. The new `User` will have the same `username` and `email` of the input `dict`. If the input `dict` is invalid, the default user will be returned.
```python
class User:
username = 'user'
email = 'something@email.com'
```
2.`user_to_json` that will receive a `User` and will return the object as a string in JSON format. Be aware of the Python types that can be converted to JSON!
### Usage
Here is a possible `test.py` to test your functions: