This website uses Cookies. Click Accept to agree to our website's cookie use as described in our Privacy Policy. Click Preferences to customize your cookie settings.
Hi there,
Can someone explain to me why the following expression generates true as a result:
I have the following pipeline:
In JSON Generator I have:
{
"field": null
}
AutoPrep config:
Data type is set to a number; if null, 0 (zero) will be the ...
Hello there,
Is there a way to flatten a nested JSON (multiple objects inside objects/arrays) without using a Script Snap?
Take this input for example:
{
"msg":"Hello, World",
"num":1,
"fruits":{
"apple":1,
"orange":4,
"inn...
Hello,
I am trying to terminate a running pipeline using Snaplogic API (according to the API Documentation) with POST snap but I get a 404 error every time.
My snap settings:
Error:
The ruuid is correct (I’ve done a get request and I’ve got a respo...
You are right, in this case it works but in my case I have an array of objects which I finally managed to work with this: jsonPath($, "$nested[*]").map(x => x.mapValues((value, key) => !isNaN(value) ? value * 10 : value))
Input:
"nested": [{"m": "hey...
Yes but .map() function transforms every element from the Array, I only need to change the fields where there are numbers. Is there a way that I can use conditional logic inside of the .map() function?( if typeof value == ‘number’ then value * 10 els...