rename

Rename fields

Type: array of (field,field) pairs

Example: Simple rename

input:

{"een":1}

action:

rename:
  - een: one

output:

{"one":1}

Example: "Non-flat" data

original top-level fields are never removed

input:

{"one-two":[1,2],"three":{"key":3}}

action:

rename:
  - one-two.0: one
  - one-two.1: two
  - three.key: three

output:

{"one-two":[],"three":{},"one":1,"two":2,"three":3}