Archive of posts filed under the Useful snippets category.

I needed to convert a JSON hierarchy to an HTML bullet hierarchy and all the solutions I found on the Web were overkill. Enjoy. <!DOCTYPE html> <head> <script> var g_tree = { "1":{ "11":{ "111":{ "option1":1, …