PHPackages                             happones/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. happones/filament-jsoneditor

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

happones/filament-jsoneditor
============================

Filament's JSON Editor input

v7.0.0(2mo ago)05MITPHPPHP ^8.2CI failing

Since May 12Pushed 2mo agoCompare

[ Source](https://github.com/happones/filament-jsoneditor)[ Packagist](https://packagist.org/packages/happones/filament-jsoneditor)[ Docs](https://github.com/happones/filament-jsoneditor)[ RSS](/packages/happones-filament-jsoneditor/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (13)Versions (4)Used By (0)

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/cf2754e9b7f563308af4b048759bfde4c239cf484fbd0e688bdadd184c8ebd9c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f686170706f6e65732f66696c616d656e742d6a736f6e656469746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/happones/filament-jsoneditor)[![GitHub Tests Action Status](https://github.com/happones/filament-jsoneditor/actions/workflows/run-tests.yml/badge.svg)](https://github.com/happones/filament-jsoneditor/actions/workflows/run-tests.yml)[![GitHub Code Style Action Status](https://github.com/happones/filament-jsoneditor/actions/workflows/php-cs-fixer.yml/badge.svg)](https://github.com/happones/filament-jsoneditor/actions/workflows/php-cs-fixer.yml)[![Total Downloads](https://camo.githubusercontent.com/5566284f03900551f0e7e4855c2458e576bc1c85d4bf6b2a6685f31d5818941f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f686170706f6e65732f66696c616d656e742d6a736f6e656469746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/happones/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 happones/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)

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

Options
-------

[](#options)

```
[
    \Happones\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']
        ->options([
            'mainMenuBar' => true,
            'navigationBar' => true,
            'statusBar' => true,
        ]); // default options can be set in config/filament-jsoneditor.php
]
```

Global Configuration
--------------------

[](#global-configuration)

You can publish the config file to set global defaults:

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

The config file allows you to set default height, modes, and other JSONEditor options.

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)

- [Omar Hernandez](https://github.com/happones)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance86

Actively maintained with recent releases

Popularity5

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 61.1% 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 ~0 days

Total

3

Last Release

73d ago

Major Versions

v5.0.0 → v6.0.02026-05-12

v6.0.0 → v7.0.02026-05-12

PHP version history (2 changes)v5.0.0PHP ^8.1

v6.0.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/61e2a79b27236f3e58b7c5523fd705df3cbfc8b44c8fd1bc9285fc7dd35c468b?d=identicon)[happones](/maintainers/happones)

---

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)")[![happones](https://avatars.githubusercontent.com/u/11873340?v=4)](https://github.com/happones "happones (3 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

laraveljsoneditorfilament-jsoneditorhappones

###  Code Quality

TestsPest

Static AnalysisPHPStan

### Embed Badge

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

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

###  Alternatives

[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.8k](/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)[backstage/mails

View logged mails and events in a beautiful Filament UI.

16121.5k](/packages/backstage-mails)[finity-labs/fin-mail

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

284.8k2](/packages/finity-labs-fin-mail)[tapp/filament-form-builder

User facing form builder using Filament components

132.4k5](/packages/tapp-filament-form-builder)

PHPackages © 2026

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