JQ Executor is a Visual Studio Code extension that enables users to transform JSON data using JQ scripts within the VS Code environment.
Features
JSON Transformation: Execute JQ scripts to transform JSON data directly within Visual Studio Code.
Configuration: Configure input payload, transformation script(jq script), configuration file, and function definitions easily through VS Code settings.
Error Handling: Provides comprehensive error handling, including identification of errors in the transformation script (JQ script), as well as handling for file selection and reading operations.
Output Channel: Output transformation results to a dedicated output channel for easy viewing.
Requirements
Visual Studio Code
Python 3.x (for executing JQ scripts)
Usage
Install the extension from the Visual Studio Code Marketplace.
Configure the extension settings (JQ-Executor) according to your requirements.
Use the JQ-Executor command to initiate the transformation process.
View the transformation results in the output channel named jq output.
Extension Settings
Input Payload: Specify how the input JSON payload is provided (e.g., select from file, use a fixed path).
Transformation Script File: Define the source of the JQ transformation script (e.g., select from file, use a fixed path).
Transform Configuration: Configure the source of the transformation configuration file.
Transform Function Definition: Specify the location of JQ function definitions.