Getting a pretty rendering of json is fairly common (to me anyway) in the shell. Today I need to do something like:
db.foo.find().forEach(function
{print(tojson(x));});
Wow... that's a lot of typing. Would it be simple thing to define a macro for the above code so that you could do something like:
db.foo.find().pretty()