added URL query parameter of "pretty=true" to output formatted json 

Just switch this to:
```
prettyPrint := false
```
This way you can remove the other else statement