I am having issues with trying to extract values from a JSON Array and utilizing the flatten variant component. Below is the JSON format:
[
{
"key": "ga_session_id",
"value": {
"double_value": null,
"float_value": null,
"int_value": 1698415322,
"string_value": null
}
},
{
"key": "firebase_event_origin",
"value": {
"double_value": null,
"float_value": null,
"int_value": null,
"string_value": "auto"
}
},
{
"key": "engagement_time_msec",
"value": {
"double_value": null,
"float_value": null,
"int_value": 1318,
"string_value": null
}
},
{
"key": "ga_session_number",
"value": {
"double_value": null,
"float_value": null,
"int_value": 1,
"string_value": null
}
}
]
My desired output would be a new column for each object in the array above:
ga_session_id | firebase_event_origin | engagement_time_msec | ga_session_number
---------------------------------------------------------------------------------------------------------------------------------------------
1698415322 | auto | 1318 | 1
Here is how the "flatten variant" component is setup:
I am able to get the four rows flattened but any time i try to extract the “key” value or value within, it get NULLs.
I’ve also tried the “extract nested data” component which identifies the “event_params” as a json structure but nothing occurs when I select autofill.
Any help/tips would be appreciated!