From a424469dd1066461eacea8851d2297fc0cecc879 Mon Sep 17 00:00:00 2001 From: Felipe Mojica Date: Fri, 12 Jun 2026 15:25:49 -0600 Subject: [PATCH] =?UTF-8?q?v2.8:=20JSON=20de=20primera=20clase=20=E2=80=94?= =?UTF-8?q?=20resaltado,=20=C3=A1rbol,=20estad=C3=ADsticas=20y=20descarga?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit El soporte JSON existente (validar, formatear, minificar, convertir) se completa en las vistas: - highlightJSON(): resaltado de sintaxis tokenizando el texto crudo (maneja comillas escapadas). Claves .attr, strings .value, números .tag, booleanos/null .comment — reutiliza los colores de los 5 temas sin CSS nuevo. renderOutput detecta el tipo de salida por prefijo. - jsonTreeHTML(): vista de árbol para JSON con objetos {} y arrays [] colapsables (details nativo), contador de claves/elementos por nodo y hojas con su valor tipado. - collectStatsJSON(): los KPIs de estadísticas (valores, claves, profundidad) ahora también se pueblan al formatear/minificar JSON. - Descargar usa extensión y MIME correctos: .json para salidas JSON, .csv tras convertir a CSV, .txt para reportes de diff/XPath. Tests: 8 nuevos — 85/85 pasando. Co-Authored-By: Claude Fable 5 --- CLAUDE.md | 8 ++--- README.md | 22 +++++++++--- docs/ROADMAP.md | 47 +++++++++++++++++++++++- docs/SCOPE.md | 10 ++++++ index.html | 96 +++++++++++++++++++++++++++++++++++++++++++------ tests.html | 70 ++++++++++++++++++++++++++++++++++-- 6 files changed, 231 insertions(+), 22 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 5c5f503..f66ff02 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -39,7 +39,7 @@ CI: `.github/workflows/tests.yml` runs the full suite headless (Playwright + Chr ## Architecture -Everything is in `index.html` (~2100 lines): CSS in `