<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body><div>Wish I could, but I'm out of town.<br></div>
<div><br></div>
<div>Josh</div>
<div><br></div>
<div><br></div>
<div>On Wed, Aug 24, 2016, at 06:20 PM, Mitch Small wrote:<br></div>
<blockquote type="cite"><div dir="ltr">Hey, all! Are we on for tomorrow?<br></div>
<div><div><br></div>
<div defang_data-gmailquote="yes"><div>On Mon, Aug 22, 2016 at 2:48 PM, Josh Lavin <span dir="ltr"><<a href="mailto:pm@jlavin.com">pm@jlavin.com</a>></span> wrote:<br></div>
<blockquote style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204, 204, 204);padding-left:1ex;" defang_data-gmailquote="yes"><div><span>On Mon, Aug 22, 2016, at 11:20 AM, Tim Howe wrote:<br> > I seem to recall a question about pretty printing JSON when we last<br> > met, and I had said I had done this.  Apparently I used this:<br> > <a href="https://metacpan.org/pod/JSON" class="">https://metacpan.org/pod/JSON</a><br> ><br> >       I have a simple example in my Catalyst version of PieNg:<br> > <a href="https://github.com/thowe/PieNg/blob/master/lib/PieNg/Controller/Logs.pm#L47">https://github.com/thowe/<wbr>PieNg/blob/master/lib/PieNg/<wbr>Controller/Logs.pm#L47</a><br> <br> </span>Nice, thanks!</div>
<div> <br></div>
<div> I got curious and tried to cook up my own little script to use to pass<br></div>
<div> in JSON and pretty-print it back, used like:<br></div>
<div> <br></div>
<div> echo '{"subtotal":21.40,"quantity":<wbr>2,"description":"Foo"}' | js<br></div>
<div> <br></div>
<div> It worked great, but then I wanted colorized output. I found an existing<br></div>
<div> CPAN module, App::lj (<a href="https://metacpan.org/pod/App::LJ">https://metacpan.org/pod/App:<wbr>:LJ</a>) which provides<br></div>
<div> an `lj` script to do that same thing.<br></div>
<div> <br></div>
<div> It uses JSON::Color. However, JSON::Color won't keep integers, but<br></div>
<div> instead makes them strings. :-( I filed a bug.<br></div>
<div> <br></div>
<div> Maybe I'll write my own colorization. For now, here's my script:<br></div>
<div> <a href="https://gist.github.com/jdigory/78751834e71291103d7d39bdd1bb48bc">https://gist.github.com/<wbr>jdigory/<wbr>78751834e71291103d7d39bdd1bb48<wbr>bc</a><br></div>
<div> <span><span class="colour" style="color:rgb(136, 136, 136)"><br> Josh<br> </span></span></div>
<div><div><div>______________________________<wbr>_________________<br></div>
<div> Bend-pm mailing list<br></div>
<div> <a href="mailto:Bend-pm@pm.org">Bend-pm@pm.org</a><br></div>
<div> <a href="http://mail.pm.org/mailman/listinfo/bend-pm" class="">http://mail.pm.org/mailman/<wbr>listinfo/bend-pm</a><br></div>
</div>
</div>
</blockquote></div>
</div>
<div><u>_______________________________________________</u><br></div>
<div>Bend-pm mailing list<br></div>
<div><a href="mailto:Bend-pm@pm.org">Bend-pm@pm.org</a><br></div>
<div><a href="http://mail.pm.org/mailman/listinfo/bend-pm">http://mail.pm.org/mailman/listinfo/bend-pm</a><br></div>
</blockquote><div><br></div>
</body>
</html>