The right-side JSON viewer was not updating after saving edits because editJson was stale — only load() was called, which updates the document list but not the displayed JSON preview.