Hi community,
I’m working on a Make scenario that processes JSON data and calculates values. However, I’m facing a strange issue: the result includes a leading comma ,
at the beginning of the generated value, even though the JSON input doesn’t contain any commas.
Here’s the formula I’m using in Make:
{{map(5.data.`_data`.variationGoalData; "aggregated.relativeImprovementRate.median"; "goal"; get(map(5.data.`_data`.goals; "id"; "isPrimary"; "true"); 1))}}
The goal is to extract the median
from aggregated.relativeImprovementRate
inside variationGoalData
, but only for elements where the goal
matches the id
of a goal
in goals
where isPrimary = true
. Everything seems to work fine except for the leading comma in the results.
Example of the issue:
Expected result:
0.040204944797335
Actual result:
, 0.040204944797335
I’ve checked the JSON input, and it looks fine (no commas). The mapping should generate the appropriate values. What could I be doing wrong? Could there be something in the module configuration causing this?
I’d really appreciate any insights or suggestions on how to debug this behavior. Thanks in advance for your help!