@zack/json-transform
Apply deterministic transformation operations to JSON objects and arrays.
Install
agentpm install @zack/json-transform@0.1.1Load
import { load } from '@agentpm/sdk';
const t = await load('@zack/json-transform@0.1.1');from agentpm import load
t = load("@zack/json-transform@0.1.1")Weekly downloads
1
0%
Last publish
1d ago
v0.1.1
agent.json
{
"name": "json-transform",
"version": "0.1.1",
"description": "Apply deterministic transformation operations to JSON objects and arrays.",
"files": [
"json_transform/"
],
"entrypoint": {
"args": [
"-u",
"json_transform/__main__.py"
],
"command": "python",
"timeout_ms": 30000
},
"inputs": {
"type": "object",
"required": [
"input",
"operations"
],
"properties": {
"input": {
"description": "Input JSON value to transform. Can be an object, array, or primitive."
},
"operations": {
"type": "array",
"items": {
"type": "object",
"description": "An operation object such as pick, rename, set, delete, flatten, pluck, or filter_array."
},
"description": "Ordered list of transformation operations to apply to the input value."
}
},
"additionalProperties": false
},
"outputs": {
"oneOf": [
{
"type": "object",
"required": [
"ok",
"result",
"applied_operations",
"validation_errors"
],
"properties": {
"ok": {
"const": true,
"description": "True when all requested transformations were processed."
},
"result": {
"description": "Final transformed JSON value."
},
"validation_errors": {
"type": "array",
"items": {
"type": "string",
"description": "One validation or processing error message."
},
"description": "Validation or application errors collected while processing operations."
},
"applied_operations": {
"type": "array",
"items": {
"type": "string",
"description": "Name of an applied operation."
},
"description": "Names of transformation operations that were applied successfully."
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"ok",
"error"
],
"properties": {
"ok": {
"const": false,
"description": "False when the tool could not process the transformation request."
},
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string",
"description": "Stable machine-readable error code."
},
"message": {
"type": "string",
"description": "Human-readable explanation of the failure."
}
},
"description": "Structured error returned by the tool.",
"additionalProperties": true
}
},
"additionalProperties": false
}
]
},
"readme": "README.md",
"license": {
"spdx": "MIT"
},
"runtime": {
"type": "python",
"version": "3.11"
}
}Compatibility
NodePython