rulemorph 0.2.3

YAML-based declarative data transformation engine for CSV/JSON to JSON
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
version: 1
input:
  format: json
  json: {}
mappings:
  - target: "id"
    source: "id"
  - target: "name"
    source: "name"
    when: { ref: "input.active" }
  - target: "tag"
    value: "active"
    when: true
  - target: "note"
    value: "ignored"
    when: false