Overview
The EQP JSON Widget module for Odoo, developed by EQP Solutions, provides an advanced and user-friendly JSON viewer and editor. It empowers users and developers to work with JSON data seamlessly inside Odoo forms and views, with features tailored for both visual inspection and direct editing.
This widget adapts automatically to the field’s read-only status and includes intelligent tools for validation, formatting, and navigation.
Features
Interactive JSON Viewer
- Syntax-highlighted tree view with expandable/collapsible structures
- Real-time search within JSON content
- Copy to clipboard functionality
- Statistics display: total keys, JSON size (KB), and nesting depth
- Toggle between formatted tree view and raw JSON display
Advanced JSON Editor
- Built-in editor with real-time JSON validation
- Visual feedback for valid/invalid JSON
- Improved textarea with formatting and tab support
- Seamless switch between view and edit modes
Smart Mode Detection
- Automatic adaptation based on field readonly status
- Manual toggle between viewer/editor modes
- Responsive design optimized for all screen sizes
Developer-Friendly Features
- Detailed error handling and validation messages
- Optimized for large JSON structures
- Accessible and keyboard-friendly interface
- Fully integrated with the Odoo field widget system
Installation
To install the module:
- Download it and place it inside your Odoo addons folder.
- Log in to your Odoo instance.
- Navigate to Apps, activate debug mode, and click Update Apps List.
- Install the module by clicking Install/Activate.
Usage
To use the widget, add it to a text field in your model’s XML form view:
<field name="json_field" widget="json_viewer"/>
The widget will automatically provide the correct interface (viewer or editor) based on the field’s read-only status and user interactions.
Perfect For
- API Integration: Visualize responses and request payloads
- Configuration Management: Edit complex JSON-based settings
- Development Tools: Debug and inspect JSON objects
- Custom Modules: Any feature requiring JSON handling
Gratitude Section
I would like to express my sincere gratitude for taking the time to thoroughly review this module documentation document. I hope you found it helpful, detailed, and easy to understand. My ultimate goal was to provide you with a comprehensive understanding of how the module works, and I hope that it has accomplished precisely that.