[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: luajson: how to pretty-print JSON output?
- From: Lucas Zawacki <lfzawacki@...>
- Date: Tue, 25 Jan 2011 23:21:30 -0200
Penlight has pretty printing of lua tables, I suppose the output of
luajson is a lua table right?
local pretty = require 'pl.pretty'
pretty(your_table)
My apologies if it happens that this is not the answer you're looking
for. I've never used luajson and you may not be keen of adding
penlight as a dependency.
--
http://www.twitter.com/lfzawacki
http://www.linesocode.wordpress.com