Grooper Help - Version 25.0
25.0.0017 2,127
  • Overview
  • Help Status

NDJSON Editor

Content Viewer GrooperReview.DocView

Displays newline-delimited JSON (NDJSON) documents and optionally allows the message content to be edited.

Remarks

The NDJSON Editor control provides an interactive interface for viewing and editing newline-delimited JSON (NDJSON) documents in the Grooper web client. NDJSON files are commonly used for chat logs, message streams, and large datasets, with each line representing a separate JSON object or message. The editor is designed to handle large files efficiently by dividing content into manageable parts and supporting both read-only and editable modes.

Purpose

  • View, navigate, and edit NDJSON documents, such as chat logs or message streams.
  • Efficiently manage large files by splitting content into parts for easier review and editing.
  • Edit JSON content with syntax highlighting, validation, and code completion.
  • Add, remove, or replace conversations and messages within the document.
  • Save or cancel changes to maintain data integrity.

Main Features

  • Part Navigation:
    Use the {PartNavigator} to move between different parts of a large NDJSON document.
  • Conversation Viewer:
    View chat conversations or message streams in a structured format using the {Viewer} and {Editor} controls.
  • JSON Editor:
    Edit the raw JSON content for the current part with syntax highlighting and validation in the {JsonEditor}.
  • Action Buttons:
    • {show_system}: Show or hide system chat messages.
    • {new_conversation}: Add a new conversation to the document.
    • {delete}: Delete the current conversation.
    • {new_message}: Add a new chat message.
    • {save}: Save changes to the document.
    • {cancel}: Cancel changes and revert to the last saved state.

Interactive Components

  • Inputs:
    • Text editor for direct JSON editing.
    • Structured conversation/message viewer.
    • Part navigation controls for large documents.
  • Buttons:
    • {show_system}, {new_conversation}, {delete}, {new_message}, {save}, {cancel}.
  • Child Controls:
    • {PartNavigator}: Navigate between document parts.
    • {Viewer}: View conversation/messages in read-only mode.
    • {Editor}: Edit conversation/messages in editable mode.
    • {JsonEditor}: Edit raw JSON content with syntax highlighting.

Usage Guidance

  1. Use the {PartNavigator} to select the part of the NDJSON document you wish to view or edit.
  2. Review conversations or messages in the {Viewer} or {Editor} controls.
  3. Edit the JSON content directly in the {JsonEditor}, with syntax highlighting and validation.
  4. Use action buttons to add, delete, or modify conversations and messages.
  5. Click {save} to commit changes, or {cancel} to discard edits.
  6. Toggle system messages visibility with {show_system}.

Notes

  • The editor is optimized for large NDJSON files, dividing content into parts for performance and usability.
  • Syntax highlighting and validation help prevent errors when editing JSON.
  • Read-only mode is enforced for documents that cannot be edited.
  • Action buttons provide quick access to common editing operations.
  • Use the {PartNavigator} to efficiently review and edit large datasets or chat logs.

Command Buttons

ButtonShortcut KeySummary

Child Controls

NameTypeSummary

Used By

Notification