I would just simplify this code to just

```python
"'{}'".format(json.dumps(version_info))
```