Skip to content

Add JSON editor widget to Django Admin for JSON fields, inspired by @josdejong/jsoneditorΒ #84

@Mkqm

Description

@Mkqm

Code of Conduct

  • I agree to follow Django's Code of Conduct

Feature Description

Add a JSON field editor to Django Admin similar to @josdejong/jsoneditor, allowing users to conveniently view and edit JSON data within the admin interface. inspired by @josdejong/jsoneditor

Now:
Image

After:

Image

Problem

Currently, editing JSON fields in Django Admin is cumbersome and not user-friendly. Users must manually enter JSON as text, which is error-prone and hard to read or edit. A visual editor would improve usability and reduce errors.

Request or proposal

request

Additional Details

An integration with a library like https://github.com/josdejong/jsoneditor would provide a powerful, interactive JSON editor UI in Django Admin. This would make it much easier to work with JSON fields directly from the admin.

Implementation Suggestions

Consider adding an optional widget for JSONField in Django Admin that embeds the jsoneditor component. This could be configurable, so users can enable it for specific models or fields. Look into frontend integration, possibly using a custom widget that loads the jsoneditor library.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Idea

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions