Skip to content

Instantly share code, notes, and snippets.

@NicolasGeraud
Last active February 3, 2021 22:17
Show Gist options
  • Save NicolasGeraud/db3c78b7036dbc89cd894cc1e67bc9da to your computer and use it in GitHub Desktop.
Save NicolasGeraud/db3c78b7036dbc89cd894cc1e67bc9da to your computer and use it in GitHub Desktop.
transform.json
[
{
"operation": "shift",
"spec": {
"components": {
"*": {
"name": "[&1].key",
"version": "[&1].value"
}
}
}
}
]
@NicolasGeraud
Copy link
Author

NicolasGeraud commented Nov 29, 2017

@NicolasGeraud
Copy link
Author

For a 1<->1 mapping, here is a sample :

data:

[
   {
       "key": "test",
       "value": "test-value"
   }
]

jolt transformation :

[
  { 
    "operation": "default",
    "spec": {}
  }
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment