PHPackages                             invaders-xx/filament-jsoneditor - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. invaders-xx/filament-jsoneditor

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

invaders-xx/filament-jsoneditor
===============================

Filament's JSON Editor input

5.0(1y ago)26196.1k↓11.2%13[1 issues](https://github.com/invaders-xx/filament-jsoneditor/issues)[1 PRs](https://github.com/invaders-xx/filament-jsoneditor/pulls)2MITPHPPHP ^8.0CI passing

Since Mar 28Pushed 1y ago4 watchersCompare

[ Source](https://github.com/invaders-xx/filament-jsoneditor)[ Packagist](https://packagist.org/packages/invaders-xx/filament-jsoneditor)[ Docs](https://github.com/invaders-xx/filament-jsoneditor)[ RSS](/packages/invaders-xx-filament-jsoneditor/feed)WikiDiscussions main Synced 3d ago

READMEChangelog (10)Dependencies (13)Versions (28)Used By (2)

JSON Editor form's input for the great Filament package
=======================================================

[](#json-editor-forms-input-for-the-great-filament-package)

[![Latest Version on Packagist](https://camo.githubusercontent.com/e65c8ed26a1d3c73a485a3bf1b639a6999ebaef1c0bd8b613e8b6a0465c0b6db/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696e7661646572732d78782f66696c616d656e742d6a736f6e656469746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/invaders-xx/filament-jsoneditor)[![GitHub Tests Action Status](https://camo.githubusercontent.com/58e62af0be3ceb674f9a675def2fc3783f8d88ba5b86f589d98735c00368d32d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f696e7661646572732d78782f66696c616d656e742d6a736f6e656469746f722f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/invaders-xx/filament-jsoneditor/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/2b0fc2b93edb1ee9f75fd39851a70c8cca3ea379a88623396daeeb7ea34aa94e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f696e7661646572732d78782f66696c616d656e742d6a736f6e656469746f722f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/invaders-xx/filament-jsoneditor/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/1cc3ff37c16f7da003cef0979b66cb51a4df3a9828fffee54b307feeb2863e16/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f696e7661646572732d78782f66696c616d656e742d6a736f6e656469746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/invaders-xx/filament-jsoneditor)

If you need to have a JSON Editor field within your form. You have it !

[![image](https://user-images.githubusercontent.com/604907/160436321-9ff47bb8-28a2-45af-98fe-a57802236178.png)](https://user-images.githubusercontent.com/604907/160436321-9ff47bb8-28a2-45af-98fe-a57802236178.png)

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require invaders-xx/filament-jsoneditor
```

```
php artisan vendor:publish --tag=filament-jsoneditor-img
```

This command will publish the jsoneditor button's img

Required format
---------------

[](#required-format)

The Eloquent Model data must be cast to array or json

Example:

```
class MyModel extends Model
{
    protected $casts = [
        'my_field' => 'array',
        'another_field' => 'encrypted:json',
    ];
}
```

Usage
-----

[](#usage)

```
[
    \InvadersXX\FilamentJsoneditor\Forms\JSONEditor::make('editor');
]
```

Options
-------

[](#options)

```
[
    \InvadersXX\FilamentJsoneditor\Forms\JSONEditor::make('editor')
        ->height(500) // Set height to 500px, default is 300
        ->modes(['code', 'form', 'text', 'tree', 'view', 'preview']); // default is ['code', 'form', 'text', 'tree', 'view', 'preview']
]
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [David Vincent](https://github.com/invaders-xx)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity45

Moderate usage in the ecosystem

Community24

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 63% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~42 days

Recently: every ~75 days

Total

26

Last Release

509d ago

Major Versions

0.6.3 → 3.02023-08-23

3.1 → 4.02024-04-17

4.2.1 → 5.02025-02-10

### Community

Maintainers

![](https://www.gravatar.com/avatar/cd84d991d619a7b8cafe026320fcb9a7b7b76b5fefe1738fd1f1e41fd0db0c64?d=identicon)[invaders-xx](/maintainers/invaders-xx)

---

Top Contributors

[![invaders-xx](https://avatars.githubusercontent.com/u/604907?v=4)](https://github.com/invaders-xx "invaders-xx (58 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (14 commits)")[![tanthammar](https://avatars.githubusercontent.com/u/21239634?v=4)](https://github.com/tanthammar "tanthammar (9 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (4 commits)")[![ziming](https://avatars.githubusercontent.com/u/679513?v=4)](https://github.com/ziming "ziming (3 commits)")[![mahavishnup](https://avatars.githubusercontent.com/u/52984889?v=4)](https://github.com/mahavishnup "mahavishnup (2 commits)")[![XternalSoft](https://avatars.githubusercontent.com/u/1142472?v=4)](https://github.com/XternalSoft "XternalSoft (1 commits)")[![gwlortscher](https://avatars.githubusercontent.com/u/4160947?v=4)](https://github.com/gwlortscher "gwlortscher (1 commits)")

---

Tags

laraveljsoneditorinvaders-xxfilament-jsoneditor

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/invaders-xx-filament-jsoneditor/health.svg)

```
[![Health](https://phpackages.com/badges/invaders-xx-filament-jsoneditor/health.svg)](https://phpackages.com/packages/invaders-xx-filament-jsoneditor)
```

###  Alternatives

[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[stephenjude/filament-jetstream

A Laravel starter kit built with Filament inspired by Jetstream.

17760.2k3](/packages/stephenjude-filament-jetstream)[stephenjude/filament-debugger

About

104162.2k2](/packages/stephenjude-filament-debugger)[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

329530.5k29](/packages/codewithdennis-filament-select-tree)[stephenjude/filament-feature-flags

Filament implementation of feature flags and segmentation with Laravel Pennant.

122177.8k1](/packages/stephenjude-filament-feature-flags)[finity-labs/fin-mail

A powerful email template manager and composer for Filament with dynamic token replacement, template versioning, and inline email sending.

284.5k1](/packages/finity-labs-fin-mail)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
