You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, nope, I mean that there is a parameter that minimizes all the nodes (collapsed), but there is no parameter that indicates what level of nesting should be minimized by default (nestingLvl)
{collapsed: false, withQuotes: false, withLinks: false, nestingLvl: 3} 1lvl - { id: 1001, type: "donut", name: "Cake", 2lvl - available: { store: 42, warehouse: 600 }, toppings: [ 3lvl - {2 items}, # collapsed by nestingLvl param ], }
OK I understand what you want to achieve! This could be useful, but I don't know if I'll have time for this.
If you want to give it a shot and implement this option, you would need to add a depth argument to the recursive json2html function, which should be incremented before each recursive call:
can I somehow control the level of nesting? How is it easiest for me to implement?
nesting (int 0-5, default 3)
The text was updated successfully, but these errors were encountered: