FIX JSON render issues

Discovered during User Manual preparation for 0.9.0, after using `python -mjson.tool` for JSON request.

@kzangeli, maybe you could do a test harness before merging this PR to cover these cases while I finish with documentation?

kz: sure, first thing tomorrow