EUComply

How to Add Computed Fields to JSON or CSV

September 2026 · 4 min read · Try it in your browser →

You have an order list and need a total column. Or user records where you want a lowercase username. The usual answers are a throwaway Python script or a spreadsheet round-trip. There's a shorter path.

The Transmute CLI (free)

The add operation computes new fields from existing ones. Given orders.json:

[
  { "name": "Alice", "price": 10, "qty": 2 },
  { "name": "Bob",   "price": 5,  "qty": 4 }
]
$ npx github:mahope/transmute orders.json \
    --pipe '[{"op":"add","fields":{"total":"item.price * item.qty"}}]' \
    --output json
[
 {
  "name": "Alice",
  "price": 10,
  "qty": 2,
  "total": 20
 },
 {
  "name": "Bob",
  "price": 5,
  "qty": 4,
  "total": 20
 }
]

add works on CSV input too — the types are coerced first, so arithmetic just works:

$ npx github:mahope/transmute orders.csv \
    --pipe '[{"op":"add","fields":{"total":"item.price * item.qty"}}]' -o csv

Combine with the other pipeline steps — here adding a field and filtering in one pass:

$ npx github:mahope/transmute orders.json \
    --pipe '[{"op":"add","fields":{"total":"item.price * item.qty"}},{"op":"filter","expr":"item.total >= 20"}]' \
    --output json

The alternatives

Gotchas

Pipelines like this — without writing a script

The Transmute CLI is free (npx github:mahope/transmute). The desktop app adds an interactive pipeline builder, live preview and batch processing — one-time $19, no subscription.

Try the live demo →   See pricing