Go to example tasks

JavaScript code runner for JSON transformations

Execute a JavaScript JSON transformation in a bounded sandbox and export structured stdout, status, timing, and errors.

Try for free
AI Code Runner Sandbox
AI Code Runner Sandboxautomation-lab/ai-code-runner-sandbox
Batch index
Execution ID
Status
Language
+6 fields
Text
Number
Boolean
List
Object

Input

🧩 Runtime language:javascript
Code:const chunks=[]; for await (const c of process.stdin) chunks.push(c); const x=JSON.parse(Buffer.concat(chunks).toString()); console.log(JSON.stringify({total:x.values.reduce((a,b)=>a+b,0)}));
Standard input:{1 field}
Parse stdout as JSON:true
⏱️ Execution timeout (seconds):5

Output fields

Batch index
Execution ID
Status
Language
Exit code
Duration (ms)
Standard output
Standard error
Parsed result
Executed at

How it works

Sign up on Apify or log in

The AI Code Runner Sandbox Actor is ready to run with the inputs already set for "JavaScript code runner for JSON transformations". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "JavaScript code runner for JSON transformations" task

The AI Code Runner Sandbox Actor will start running based on the input automatically. You can also change all the input fields, like 🧩 runtime language, code, and more, to match your specific use case.

Receive the "JavaScript code runner for JSON transformations" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as batch index, execution id, status, and more.

Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also run the "JavaScript code runner for JSON transformations" task via API.

Image

Integrate "JavaScript code runner for JSON transformations" into your workflow

Connect "JavaScript code runner for JSON transformations" with 100+ integrations, or run it via API or MCP.

Webhook

Webhook

n8n

n8n

Make

Make

Zapier

Zapier

Airbyte

Airbyte

Keboola

Keboola

IFTTT

IFTTT

Hubspot

Hubspot

GDrive

GDrive

Gmail

Gmail

Apify MCP

Apify MCP

GitHub

GitHub

Slack

Slack

LangChain

LangChain

LlamaIndex

LlamaIndex

Flowise

Flowise

Pinecone

Pinecone

OpenAI

OpenAI

Mastra

Mastra

Clay

Clay