Open zpatrol opened 6 years ago
Input:
{ "value": "firstValue|secondValue" }
JoltSpec:
[ { "operation": "shift", "spec": { "value": { "*\\|*": { "$(0,1)": "1", "$(0,2)": "2" } } } } ]
Expected:
{ "1" : "firstValue", "2" : "secondValue" }
It is working well with underline or comma. It's not working with pipeline "|" :
Error running the Transform. JOLT Chainr encountered an exception constructing Transform className:com.bazaarvoice.jolt.Shiftr at index:0.
"|" has special meaning in Jolt shift. It looks like the escaping logic isn't catching this path.
any solution to split string having '|' as seperator??
Input:
JoltSpec:
Expected:
It is working well with underline or comma. It's not working with pipeline "|" :