Separate properties in Json

Hello!
I have an unresolved problem, please help me.
I have a Json like this:

[
{
“Links”:
"{“playbackMp4s”:{“duration”:14,“permutations”:[{“source”:{“url”:"https://domain.com/3ujtrp168dec1/pb/m2-res_262p.mp4?m=DASHPlaylist.mpd&v=1&e=1706511600&s=dcb544951bcf92660b8cec83bb262d27cf382f00",“dimensions”:{“width”:220,“height”:262}}},{“source”:{“url”:“https://domain.com/3ujtrp168dec1/pb/m2-res_322p.mp4?m=DASHPlaylist.mpd&v=1&e=1706511600&s=57232170da8b490d37e9c2fca64cebb190658ddd”,“dimensions”:{“width”:270,“height”:322}}},{“source”:{“url”:“https://domain.com/3ujtrp168dec1/pb/m2-res_430p.mp4?m=DASHPlaylist.mpd&v=1&e=1706511600&s=baf92d0318c8e8c7bdd5e59804736a20e1519f13”,“dimensions”:{“width”:360,“height”:430}}},{“source”:{“url”:“https://domain.com/3ujtrp168dec1/pb/m2-res_572p.mp4?m=DASHPlaylist.mpd&v=1&e=1706511600&s=15422b9da5553ec8eb14b98cb6fb1f89a240b573”,“dimensions”:{“width”:480,“height”:572}}},{“source”:{“url”:“https://domain.com/3ujtrp168dec1/pb/m2-res_858p.mp4?m=DASHPlaylist.mpd&v=1&e=1706511600&s=966ec349e0bbc1ce93575fec4e812bd513f1e9d8”,“dimensions”:{“width”:720,“height”:858}}}]}}"
}
]

I want to output the value of the ‘url’ attribute with the highest video quality (res), for example:

https://domain.com/3ujtrp168dec1/pb/m2-res_858p.mp4?m=DASHPlaylist.mpd&v=1&e=1706511600&s=966ec349e0bbc1ce93575fec4e812bd513f1e9d8

Please help me. Thanks a lot!

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • **Running n8n via (Docker, npm, n8n cloud, desktop app):Docker
  • Operating system:

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

@Con_Ga , a bit lengthy but I purposefully wanted to avoid using Code node with all the logic packed there.

2 Likes

Thank you very much! This is all I need. I really appreciate it :ok_hand:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.