Skip to content

JSON viewer and editor on iPhone and iPad #3637

Closed

Description

@datlechin

Problem

A JSON value on iPhone and iPad is shown and edited as one line of raw text.

  • The row screen draws every value as plain Text (apple/TableProMobile/TableProMobile/Views/RowDetailView.swift:346), so a jsonb document arrives as one run of braces and quotes with no indentation.
  • Editing it uses a single-line TextField (RowDetailView.swift:324). Changing one key in the middle of a 2 KB document means scrolling sideways through it.
  • Nothing checks the text is still valid JSON before Save, so a missing brace is found by the server, not by the app.

The Mac opens a JSON column in a JSON viewer with text and tree modes (features/json-viewer.mdx).

Proposed solution

  • On a column declared as JSON, such as PostgreSQL json and jsonb or MySQL and MariaDB JSON, the row screen shows the value indented, with a button that opens it full screen.
  • The full-screen view has two modes: formatted text, and a tree that expands objects and arrays by tapping, with each key's path copyable.
  • Editing opens a multi-line editor that checks the JSON as the user types and blocks Save with the error position while it does not parse.
  • Values are saved as typed, never reformatted behind the user's back, so key order and spacing stay as they were unless the user changes them.
  • A text column whose value parses as a JSON object or array gets the same View as JSON button, without changing how it is saved.

Done means: a jsonb value opens indented, can be browsed as a tree, and a broken edit cannot be saved.

Alternatives considered

Copy the value with Copy Value, format it in another app, and paste it back.

Platform

iOS

Related database type

PostgreSQL

Activity

  1. added
    enhancement
    platform-ios
    on Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementplatform-ios

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions