proof of concept for pretty=true JSON output