[racket] Json pretty-print
In talking with an experienced Racketeer, I realized that pretty-print has
a specific meaning in Racket that takes width into account. What I really
want is json with properly placed newlines and tabs (or spaces).
I'm willing to take a stab at it if it doesn't exist. I just wanted to make
sure I wasn't missing it somewhere (which happens often with me).
On Tue, Apr 16, 2013 at 11:06 AM, Nick Shelley <nickmshelley at gmail.com>wrote:
> I ended up just doing a system call to Python as suggested here:
> http://stackoverflow.com/questions/352098/how-to-pretty-print-json-from-the-command-line
> .
>
> When one of my coworkers (who I've been trying to convince that Racket is
> a real language) reviewed my code, he laughed at that line because he's a
> Python guy. I guess he wins this round...
>
>
> On Sat, Apr 13, 2013 at 11:37 AM, Nick Shelley <nickmshelley at gmail.com>wrote:
>
>> Is there a way to get formatted json output to a file? I couldn't figure
>> out how to get pretty-print hooked in with write-json. I'm probably just
>> missing something simple.
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20130416/e3e9f71f/attachment.html>