`jsonutils.jsonTo` not working on JS backend
### Description

Example code:
```nim
proc unserialize*[T: ClientMsg|ServerMsg](s: string): T = s.parseJson.jsonTo(T)
```

### Nim Version

2.2.0

### Current Output

```text
/Users/dawid/.choosenim/toolchains/nim-2.2.0/lib/std/jsonutils.nim(221, 31) template/generic instantiation of `fmt` from here
(1, 2) Error: attempting to call undeclared routine: 'pretty'
```


### Expected Output

_No response_

### Known Workarounds

_No response_

### Additional Information

_No response_