Skip to content
pubscout

json_editor_flutter

1.4.2, released 2 years ago by makecv.in

A Flutter widget to edit JSON objects via a user-friendly tree or text editor.

WASM-ready
$ flutter pub add json_editor_flutter
Source repository

What it does

Provides a customizable widget for editing JSON data in either a tree view or a text editor view. It supports creating, deleting, and modifying keys and values, as well as searching and expanding nested objects.

AI-written summary of version 1.4.2, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to let users view or edit JSON objects directly inside a Flutter application.
  • You want both a structured tree view and a raw text view for editing JSON data.

Skip it when

  • You are looking for code generation tools to map JSON to immutable Dart classes.
  • You need complex data persistence or database management.

Strengths

  • Supports both tree and text editors for JSON.
  • Highly customizable with options to enable or disable key/value editing and more options.
  • Includes built-in search functionality and configurable expanded objects.

Weaknesses

  • Limited to what is supported by the widget properties; highly specialized custom JSON schema validation might not be built-in.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
JsonEditor(
  onChanged: (value) {
    // Do something
  },
  json: jsonEncode({
    "name": "John Doe",
    "age": 24
  }),
)

Alternatives

Packages that do the same job and could replace json_editor_flutter.