JavaScript Dokry

Javascript tiene muchos buenos JS marco (como Node.js AngularJS Vue.js React.js) es el mejor lenguaje de script

JSON problema de bucle recursivo con Jquery

IM que tiene una cadena JSON como esta [{“group_id”:”1″,”group_name”:”coupler system”,”subgroups”:[{“group_id”:”9″,”group_name”:”core”,”subgroups”:0},{“group_id”:”10″,”group_name”:”dual”,”subgroups”:0}]},{“group_id”:”2″,”group_name”:”powersource\/engine”,”subgroups”:[{“group_id”:”11″,”group_name”:”petrol”,”subgroups”:[{“group_id”:”13″,”group_name”:”ECO-whisper”,”subgroups”:[{“group_id”:”15″,”group_name”:”yes”,”subgroups”:0},{“group_id”:”16″,”group_name”:”no”,”subgroups”:0}]}]},{“group_id”:”12″,”group_name”:”electric”,”subgroups”:[{“group_id”:”14″,”group_name”:”mains”,”subgroups”:[{“group_id”:”17″,”group_name”:”220V”,”subgroups”:0},{“group_id”:”18″,”group_name”:”110V”,”subgroups”:0}]}]}]},{“group_id”:”3″,”group_name”:”tool connections”,”subgroups”:[{“group_id”:”19″,”group_name”:”1(STO)”,”subgroups”:0},{“group_id”:”20″,”group_name”:”2(MTO)”,”subgroups”:0}]},{“group_id”:”4″,”group_name”:”oil content”,”subgroups”:[{“group_id”:”21″,”group_name”:”2L?”,”subgroups”:0},{“group_id”:”22″,”group_name”:”4L?”,”subgroups”:0},{“group_id”:”23″,”group_name”:”6L?”,”subgroups”:0}]},{“group_id”:”5″,”group_name”:”hose reels”,”subgroups”:[{“group_id”:”24″,”group_name”:”no”,”subgroups”:0},{“group_id”:”25″,”group_name”:”yes”,”subgroups”:0}]},{“group_id”:”6″,”group_name”:”tool support + carry”,”subgroups”:[{“group_id”:”29″,”group_name”:”no”,”subgroups”:0},{“group_id”:”30″,”group_name”:”yes”,”subgroups”:[{“group_id”:”31″,”group_name”:”wheelset”,”subgroups”:[{“group_id”:”32″,”group_name”:”yes”,”subgroups”:0},{“group_id”:”33″,”group_name”:”no”,”subgroups”:0}]}]}]},{“group_id”:”7″,”group_name”:”weight”,”subgroups”:[{“group_id”:”34″,”group_name”:”<=15?","subgroups":0},{"group_id":"35","group_name":"<=25?","subgroups":0},{"group_id":"36","group_name":"<=50?","subgroups":0},{"group_id":"37","group_name":"<=100?","subgroups":0}]},{"group_id":"8","group_name":"dimensions","subgroups":[{"group_id":"38","group_name":"SR10","subgroups":0},{"group_id":"39","group_name":"SR20","subgroups":0},{"group_id":"40","group_name":"SR31\/32","subgroups":0},{"group_id":"41","group_name":"SR40","subgroups":0},{"group_id":"42","group_name":"SR41\/42","subgroups":0}]}] Necesito usar Jquery para hacer este JSON a la estructura de tabla HTML válida como se indica a continuación, ¿Cómo puedo implementarlo? Esto es lo que he intentado hasta ahora … golpeo con la parte de bucle recursivo $(document).ready(function(){ […]