pretty print doc json