chasegiunta / craft-jason
A field type for displaying & editing JSON data.
Installs: 31 811
Dependents: 0
Suggesters: 0
Security: 0
Stars: 15
Watchers: 2
Forks: 11
Open Issues: 10
Type:craft-plugin
Requires
- php: ^8.0.2
- craftcms/cms: ^4.0.0|^5.0.0
Requires (Dev)
- craftcms/rector: dev-main
- dev-master
- 3.1.1
- 3.0.1
- 3.0.0
- 2.0.1
- 2.0.0
- 1.0.2
- 1.0.1
- 1.0.0
- dev-renovate/configure
- dev-craft-4
- dev-dependabot/npm_and_yarn/src/assetbundles/jasonfield/codejar-3.5.0
- dev-dependabot/npm_and_yarn/src/assetbundles/jasonfield/prismjs-1.24.0
- dev-dependabot/npm_and_yarn/src/assetbundles/jasonfield/vue/cli-service-4.5.13
- dev-dependabot/npm_and_yarn/src/assetbundles/jasonfield/vue/cli-plugin-babel-4.5.13
- dev-dependabot/npm_and_yarn/src/assetbundles/jasonfield/vue/cli-plugin-eslint-4.5.13
- dev-dependabot/npm_and_yarn/src/assetbundles/jasonfield/dns-packet-1.3.4
- dev-dependabot/npm_and_yarn/src/assetbundles/jasonfield/hosted-git-info-2.8.9
- dev-dependabot/npm_and_yarn/src/assetbundles/jasonfield/url-parse-1.5.1
- dev-dependabot/npm_and_yarn/src/assetbundles/jasonfield/eslint-plugin-prettier-3.4.0
- dev-dependabot/add-v2-config-file
- dev-dependabot/npm_and_yarn/src/assetbundles/jasonfield/ssri-6.0.2
- dev-dependabot/npm_and_yarn/src/assetbundles/jasonfield/elliptic-6.5.4
- dev-dependabot/npm_and_yarn/src/assetbundles/jasonfield/ini-1.3.8
- dev-dependabot/npm_and_yarn/src/assetbundles/jasonfield/highlight.js-9.18.5
- dev-dependabot/npm_and_yarn/src/assetbundles/jasonfield/tailwindcss-1.9.6
- dev-dependabot/npm_and_yarn/src/assetbundles/jasonfield/http-proxy-1.18.1
- dev-dependabot/npm_and_yarn/src/assetbundles/jasonfield/dot-prop-4.2.1
- dev-dependabot/npm_and_yarn/src/assetbundles/jasonfield/websocket-extensions-0.1.4
- dev-dependabot/npm_and_yarn/src/assetbundles/jasonfield/vue-and-vue-template-compiler-2.6.11
This package is auto-updated.
Last update: 2025-01-05 16:03:45 UTC
README
Jason plugin for Craft CMS 3
A field type for displaying & editing JSON data.
Requirements
This plugin requires Craft CMS 3.0 or later.
Installation
To install the plugin, follow these instructions.
-
Open your terminal and go to your Craft project:
cd /path/to/project
-
Then tell Composer to load the plugin:
composer require chasegiunta/craft-jason
-
In the Control Panel, go to Settings → Plugins and click the “Install” button for Jason.
Jason Overview
Jason is a fieldtype tailored for displaying JSON data, typically collected from a frontend form.
Using Jason
Jason fields can be set to readonly, allow value-only editing, or allow full editing of data (when editing keys or reordering is necessary).
Values can be accessed in templates like normal, but unless keys are in camelCase
, you'll need to use array syntax eg. {{ entry.myJasonField.some.nested["super key"] }}
Jason Roadmap
Some things to do, and ideas for potential features:
- Syntax highlighting while editing raw data
- Editable keys within control panel
Brought to you by Chase Giunta