I'm evaluating to use J2H (http://json2html.com/examples/) to render JSON structures.
My JSON are complex trees, with many repeated (recursive) structures.
My question is about how to define a transform that can be applied at many levels of the JSON tree when it finds nodes of the same type/structure (I can add type or class attributes to know which nodes are of the same type).
Example:
+ root type=node
+ child type=attribute
+ child type=node
+ child type=attribute
+ child type=attribute
+ child type=node_primitive
+ child type=primitive
+ child type=attribute
+ child type=node
On that tree we have types: node, attribute, node_primitive and primitive that can be on different levels of the tree. And nodes of the same type will have the same structure.