SkillAgentSearch skills...

JsonTree

A lightweight vanilla Javascript micro-library for making collapsible trees with JSON

Install / Use

/learn @MaxLeiter/JsonTree
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

jsonTree

A lightweight vanilla Javascript micro-library for making collapsible trees with JSON

usage

new jsonTree(object, selector, depth);

Because jsonTree uses document.querySelector(selector), selector can either be an ID or class, just be sure to specify with the proper identifier (. for class and # for ID).

"depth" is a boolean which decides if jsonTree should apply a class to all children elements ("depth-#"). This can be used for custom styling but may increase loading times.

The JSON object must be a valid JavaScript object or a properly formatted URL (http://, etc), as XMLHttpRequests are annoying that way.

Related Skills

View on GitHub
GitHub Stars182
CategoryDevelopment
Updated5mo ago
Forks13

Languages

JavaScript

Security Score

97/100

Audited on Oct 2, 2025

No findings