"normalize" JSON to split after

Hi,
I am trying to go from the (HTTP Request) that has the array from the “records” and try to normalize it in order to apply the split as seen in https://community.n8n.io/t/split-a-variable/333:

[

{

"records": [

{

“id”: 4,

“Name”: “4”,

“Image”: {

“url”: “https://unsplash-uploads.imgix.net/f5946e179303e17fca5e0ecbd9688f4850916b42bde5ea61e494479c86247ccf.jpg”,

To here
[

{

“id”: 4,

“Image_Url”: “https://unsplash-uploads.imgix.net/f5946e179303e17fca5e0ecbd9688f4850916b42bde5ea61e494479c86247ccf.jpg

}

]

Using step only does one variable, and using the split a variable function, I am getting “Not iterable”

How to get all values from Request “Normalized” in order to then split them? Thank you very much.

If I understand you correctly, this might help:

return items[0].json["records"].map(r => ({ json: { id: r.id, Image_Url: r.Image.url }}));

Input:

image

Output:

image

1 Like

Yes, super great. Thank you very much.