like this: { "0": { "id": "", "function": { "name": null, "arguments": "{\"command\": \"ps aux --sort=-%cpu | head -n 10\"}" } } }