/ListPrint

A small javascript library that prints a variable to a html list in a readable and interactable manner, a glorified JSON.stringify if you will. Requires jQuery to run.

Primary LanguageJavaScriptOtherNOASSERTION

I made this small library for myself to assist me in debugging code. I'm a big fan of prettyPrint, but one gripe I have with that library is that it's often hard to "get" the structure of an object just from a glance.

ListPrint will basically just dump out your variable in json format structured in a html list, which can be styled with CSS. The list elements are collapsible so you can navigate through your object like you do when inspecting it in Firebug.

Demo: http://jsfiddle.net/ajFgX/