josdejong / svelte-jsoneditor

A web-based tool to view, edit, format, repair, query, transform, and validate JSON
https://jsoneditoronline.org
Other
814 stars 108 forks source link

Refactor the internal data structures holding state like expanded nodes, search results, and validation errors #450

Closed josdejong closed 2 weeks ago

josdejong commented 2 weeks ago

Moves from storing data in a map with keys holding JSONPointers and values holding the state (like the expanded nodes) into a recursive data structure. This requires less logic when operating on the JSON document since the data structures are aligned with that, and it makes improves rendering performance.