Added a `pretty_json` utility to samples