I would probably write this something like:

```py
if result.content:
    return json.loads(result.content)

return None
```