Comments (4)
Thank you so much, works like a charm.
Are there disadvantages to removing the value from the path, like this?
[
{
"operation": "shift",
"spec": {
"id": "cxid",
"name": {
"#CX_NAME": "&1.cispec.assetattrid", // indexing by &1 (name or category)
"@0": "&1.cispec.alnvalue"
},
"category": {
"#CX_CATEGORY": "&1.cispec.assetattrid",
"@0": "&1.cispec.alnvalue"
}
}
},
{
"operation": "shift",
"spec": {
"*": "&", // all attributes except name|category are mapped identically
"name|category": {
"*": "cispec[]" // to an array
}
}
}
]
from jolt.
[
{
"operation": "shift",
"spec": {
"id": "cxid",
"name": {
"#CX_NAME": "&[email protected]", // indexing by &1 (name or category) before @1 in case the value is identical
"@0": "&[email protected]"
},
"category": {
"#CX_CATEGORY": "&[email protected]",
"@0": "&[email protected]"
}
}
},
{
"operation": "shift",
"spec": {
"*": "&", // all attributes except name|category are mapped identically
"name|category": {
"*": {
"*": "cispec[]" // to an array
}
}
}
}
]
from jolt.
I think it's great.
from jolt.
Perfekt, thanks. Have a great day :)
from jolt.
Related Issues (20)
- ifElse multiple conditions? HOT 2
- Demo site source code
- Input JSON lost when doing a date concat
- bug on reading timestamp value HOT 1
- Sort wont work on an Array of complex Objects HOT 1
- squashNulls and recursivelySquashNulls need to work on arrays HOT 1
- concat elements of array HOT 3
- min\max for arrays
- Why is the key obtained from "&2" not "rating" HOT 6
- Help with Jolt transformation spec HOT 2
- How to compare fields between 2 JSON objects and create a response JSON in Jolt
- getrandom - target is not supported
- How to add an object to the end of an array with unknown length HOT 5
- Jo;t spec to remove fields having null and empty in the json having arraylist HOT 1
- need to replace a string using modify-overwrite-beta, REPLACE ABC string from attributes HOT 3
- how to read required attributes from a config file HOT 3
- What is jolt conversion spec for the given input and output
- The constructor of com.bazaarvoice.jolt.common.pathelement.StarDoublePathElement class could throw an unexpected ArrayIndexOutOfBoundsException
- Jolt Transformer for Splitting a field value HOT 2
- Support for Godot 4.4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jolt.