I'm a new in JOLT and need a help in a transformation.
Case is - adding key:value to the top of plain JSON, shifting other pairs down to bottom.
Initial json
{ "keyA":"valueA",
"keyB":"valueB"}
Jolt Specification
[{"operation": "default",
"spec": {
"metaA": "metaValueA",
"metaB": "metaValueB"
}}]
Desired output
{ "metaA": "metaValueA",
"metaB": "metaValueB",
"keyA": "valueA",
"keyB": "valueB"}
Real output
{ "keyA": "valueA",
"keyB": "valueB",
"metaA": "metaValueA",
"metaB": "metaValueB"}
Similar example gives not similar json in this case.
Thank all for your help!