lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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