Loop structure in arrays [node red]

Hey guys!

I'm starting to venture into node red and javascript.

I have a question, I made a stream that injects a json with arrays and a function that reads them, however, how can I read an array inside another?
I have been looking for this for some time to no avail.

the purpose is that all the items in the arrays are read, and return in this array "msglist"

if you can help me, i'll be very grateful

[{"id":"f8bbf64fbc962316","type":"inject","z":"a70aa67a5f93f0a5","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"name\":\"john\",\"birthday\":2002,\"movies\":[{\"adventure\":\"Avatar\",\"action\":\"Rambo\",\"fiction\":\"interstellar\"},{\"horror\":\"choose one\",\"options\":[{\"type1\":\"psychological\",\"type2\":\"visual\"}]}]}","payloadType":"json","x":210,"y":140,"wires":[["78721be64c20c52b"]]},{"id":"3f91816b0e7ed1f2","type":"debug","z":"a70aa67a5f93f0a5","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":690,"y":140,"wires":[]},{"id":"78721be64c20c52b","type":"function","z":"a70aa67a5f93f0a5","name":"payload","func":"let list = msg.payload.movies;\nvar msglist = [];\nlet tamanho = msg.payload.movies.length\n\nfor (var indexi = 0; indexi < tamanho; indexi++){\n        msglist.push({payload:list[indexi]});\n    }\n\nreturn [msglist];","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":420,"y":140,"wires":[["3f91816b0e7ed1f2"]]}]


Export flow and place it in the edited post please.

Ok, done!

I didn't understand the problem very well. you can get inside the array something like this

[{"id":"f8bbf64fbc962316","type":"inject","z":"c991dbcde03824f2","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"true","payloadType":"bool","x":1262,"y":264,"wires":[["3b469bd5ce492aa8"]]},{"id":"3b469bd5ce492aa8","type":"template","z":"c991dbcde03824f2","name":"","field":"payload","fieldType":"msg","format":"json","syntax":"mustache","template":"{\n    \"name\": \"john\",\n    \"birthday\": 2002,\n    \"movies\": [\n        {\n            \"adventure\": \"Avatar\",\n            \"action\": \"Rambo\",\n            \"fiction\": \"interstellar\"\n        },\n        {\n            \"horror\": \"choose one\",\n            \"options\": [\n                {\n                    \"type1\": \"psychological\",\n                    \"type2\": \"visual\"\n                }\n            ]\n        }\n    ]\n}","output":"json","x":1386,"y":264,"wires":[["e57f387dbe1e8bf1"]]},{"id":"e57f387dbe1e8bf1","type":"function","z":"c991dbcde03824f2","name":"payload","func":"/*\nlet list = msg.payload.movies;\nvar msglist = [];\nlet tamanho = msg.payload.movies.length\n\nfor (var indexi = 0; indexi < tamanho; indexi++){\n        msglist.push({payload:list[indexi]});\n    }\n\nreturn [msglist];\n*/\n\nlet msglist = []\n\nmsg.payload.movies.forEach(el => {\n    if(Array.isArray(el.options)){\n        msg.payload.movies[1].options.forEach(es => {\n            msglist.push(es)\n        })\n    }else {\n        msglist.push(el)\n    }\n})\n\nreturn [ msglist ]","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1518,"y":264,"wires":[["3f91816b0e7ed1f2"]]},{"id":"3f91816b0e7ed1f2","type":"debug","z":"c991dbcde03824f2","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1646,"y":264,"wires":[]}]

Using "for" like this for (index = 0; index <a.length; ++ index) { } not very good, better use for (var key in a) {}. Easier to read and less to write.

1 Like

@wjr1506 it is rarely the case that an array of objects (like your movies array) will have objects with properties / keys that are not consistent (that dont have some similarities)
i understand that this is just sample data for experimenting but have a look of the structure of this data.

[{"id":"f5c75d5369b36f29","type":"inject","z":"5847b7aa62131d37","name":"Movies","props":[{"p":"payload.movies","v":"[{\"year\":2013,\"title\":\"Rush\",\"info\":{\"directors\":[\"Ron Howard\"],\"release_date\":\"2013-09-02T00:00:00Z\",\"rating\":8.3,\"genres\":[\"Action\",\"Biography\",\"Drama\",\"Sport\"],\"image_url\":\"http://ia.media-imdb.com/images/M/MV5BMTQyMDE0MTY0OV5BMl5BanBnXkFtZTcwMjI2OTI0OQ@@._V1_SX400_.jpg\",\"plot\":\"A re-creation of the merciless 1970s rivalry between Formula One rivals James Hunt and Niki Lauda.\",\"rank\":2,\"running_time_secs\":7380,\"actors\":[\"Daniel Bruhl\",\"Chris Hemsworth\",\"Olivia Wilde\"]}},{\"year\":2012,\"title\":\"The Twilight Saga: Breaking Dawn - Part 2\",\"info\":{\"directors\":[\"Bill Condon\"],\"release_date\":\"2012-11-14T00:00:00Z\",\"rating\":5.5,\"genres\":[\"Adventure\",\"Drama\",\"Fantasy\",\"Romance\"],\"image_url\":\"http://ia.media-imdb.com/images/M/MV5BMTcyMzUyMzY1OF5BMl5BanBnXkFtZTcwNDQ4ODk1OA@@._V1_SX400_.jpg\",\"plot\":\"After the birth of Renesmee, the Cullens gather other vampire clans in order to protect the child from a false allegation that puts the family in front of the Volturi.\",\"rank\":170,\"running_time_secs\":6900,\"actors\":[\"Kristen Stewart\",\"Robert Pattinson\",\"Taylor Lautner\"]}},{\"year\":2008,\"title\":\"Iron Man\",\"info\":{\"directors\":[\"Jon Favreau\"],\"release_date\":\"2008-04-14T00:00:00Z\",\"rating\":7.9,\"genres\":[\"Action\",\"Adventure\",\"Sci-Fi\"],\"image_url\":\"http://ia.media-imdb.com/images/M/MV5BMTczNTI2ODUwOF5BMl5BanBnXkFtZTcwMTU0NTIzMw@@._V1_SX400_.jpg\",\"plot\":\"When wealthy industrialist Tony Stark is forced to build an armored suit after a life-threatening incident, he ultimately decides to use its technology to fight against evil.\",\"rank\":171,\"running_time_secs\":7560,\"actors\":[\"Robert Downey Jr.\",\"Gwyneth Paltrow\",\"Terrence Howard\"]}},{\"year\":2013,\"title\":\"Oz the Great and Powerful\",\"info\":{\"directors\":[\"Sam Raimi\"],\"release_date\":\"2013-02-14T00:00:00Z\",\"rating\":6.5,\"genres\":[\"Adventure\",\"Family\",\"Fantasy\"],\"image_url\":\"http://ia.media-imdb.com/images/M/MV5BMjMyMzQ1ODM1MF5BMl5BanBnXkFtZTcwMjE2MTQxOQ@@._V1_SX400_.jpg\",\"plot\":\"A small-time magician is swept away to an enchanted land and is forced into a power struggle between three witches.\",\"rank\":172,\"running_time_secs\":7800,\"actors\":[\"James Franco\",\"Michelle Williams\",\"Rachel Weisz\"]}},{\"year\":2010,\"title\":\"Despicable Me\",\"info\":{\"directors\":[\"Pierre Coffin\",\"Chris Renaud\"],\"release_date\":\"2010-06-20T00:00:00Z\",\"rating\":7.6,\"genres\":[\"Animation\",\"Comedy\",\"Crime\",\"Family\"],\"image_url\":\"http://ia.media-imdb.com/images/M/MV5BMTY3NjY0MTQ0Nl5BMl5BanBnXkFtZTcwMzQ2MTc0Mw@@._V1_SX400_.jpg\",\"plot\":\"When a criminal mastermind uses a trio of orphan girls as pawns for a grand scheme, he finds their love is profoundly changing him for the better.\",\"rank\":173,\"running_time_secs\":5700,\"actors\":[\"Steve Carell\",\"Jason Segel\",\"Russell Brand\"]}},{\"year\":2013,\"title\":\"Movie 43\",\"info\":{\"directors\":[\"Elizabeth Banks\",\"Steven Brill\",\"Steve Carr\"],\"release_date\":\"2013-01-01T00:00:00Z\",\"rating\":4.4,\"genres\":[\"Comedy\"],\"image_url\":\"http://ia.media-imdb.com/images/M/MV5BMTg4NzQ3NDM1Nl5BMl5BanBnXkFtZTcwNjEzMjM3OA@@._V1_SX400_.jpg\",\"plot\":\"A series of interconnected short films follows a washed-up producer as he pitches insane story lines featuring some of the biggest stars in Hollywood.\",\"rank\":174,\"running_time_secs\":5640,\"actors\":[\"Emma Stone\",\"Stephen Merchant\",\"Richard Gere\"]}},{\"year\":2013,\"title\":\"Warm Bodies\",\"info\":{\"directors\":[\"Jonathan Levine\"],\"release_date\":\"2013-01-16T00:00:00Z\",\"rating\":6.9,\"genres\":[\"Comedy\",\"Horror\",\"Romance\"],\"image_url\":\"http://ia.media-imdb.com/images/M/MV5BMTQ4MjY2MjMzOV5BMl5BanBnXkFtZTcwMDUxNzIwOQ@@._V1_SX400_.jpg\",\"plot\":\"After a highly unusual zombie saves a still-living girl from an attack, the two form a relationship that sets in motion events that might transform the entire lifeless world.\",\"rank\":175,\"running_time_secs\":5880,\"actors\":[\"Nicholas Hoult\",\"Teresa Palmer\",\"John Malkovich\"]}},{\"year\":2012,\"title\":\"Flight\",\"info\":{\"directors\":[\"Robert Zemeckis\"],\"release_date\":\"2012-10-14T00:00:00Z\",\"rating\":7.3,\"genres\":[\"Drama\",\"Thriller\"],\"image_url\":\"http://ia.media-imdb.com/images/M/MV5BMTUxMjI1OTMxNl5BMl5BanBnXkFtZTcwNjc3NTY1OA@@._V1_SX400_.jpg\",\"plot\":\"An airline pilot saves almost all his passengers on his malfunctioning airliner which eventually crashed, but an investigation into the accident reveals something troubling.\",\"rank\":176,\"running_time_secs\":8280,\"actors\":[\"Denzel Washington\",\"Nadine Velazquez\",\"Don Cheadle\"]}},{\"year\":2014,\"title\":\"I, Frankenstein\",\"info\":{\"directors\":[\"Stuart Beattie\"],\"release_date\":\"2014-01-22T00:00:00Z\",\"genres\":[\"Action\",\"Fantasy\",\"Sci-Fi\"],\"image_url\":\"http://ia.media-imdb.com/images/M/MV5BMTQzNDA3MjQwMl5BMl5BanBnXkFtZTcwNTgyNTc4OQ@@._V1_SX400_.jpg\",\"plot\":\"Frankenstein's creature finds himself caught in an all-out, centuries old war between two immortal clans.\",\"rank\":177,\"actors\":[\"Aaron Eckhart\",\"Bill Nighy\",\"Miranda Otto\"]}},{\"year\":2013,\"title\":\"G.I. Joe: Retaliation\",\"info\":{\"directors\":[\"Jon M. Chu\"],\"release_date\":\"2013-03-11T00:00:00Z\",\"rating\":5.8,\"genres\":[\"Action\",\"Adventure\",\"Sci-Fi\",\"Thriller\"],\"image_url\":\"http://ia.media-imdb.com/images/M/MV5BNzk5ODM0OTQ0N15BMl5BanBnXkFtZTcwODg2ODE4OA@@._V1_SX400_.jpg\",\"plot\":\"The G.I. Joes are not only fighting their mortal enemy Cobra; they are forced to contend with threats from within the government that jeopardize their very existence.\",\"rank\":178,\"running_time_secs\":6600,\"actors\":[\"Dwayne Johnson\",\"Channing Tatum\",\"Adrianne Palicki\"]}},{\"year\":2014,\"title\":\"300: Rise of an Empire\",\"info\":{\"directors\":[\"Noam Murro\"],\"release_date\":\"2014-03-05T00:00:00Z\",\"genres\":[\"Action\",\"Drama\",\"War\"],\"image_url\":\"http://ia.media-imdb.com/images/M/MV5BMTEwNTU2MjAwMDdeQTJeQWpwZ15BbWU3MDk2Njc2Njk@._V1_SX400_.jpg\",\"plot\":\"The Greek general Themistocles battles an invading army of Persians under the mortal-turned-god, Xerxes.\",\"rank\":179,\"actors\":[\"Sullivan Stapleton\",\"Rodrigo Santoro\",\"Eva Green\"]}},{\"year\":2001,\"title\":\"The Lord of the Rings: The Fellowship of the Ring\",\"info\":{\"directors\":[\"Peter Jackson\"],\"release_date\":\"2001-12-10T00:00:00Z\",\"rating\":8.8,\"genres\":[\"Action\",\"Adventure\",\"Fantasy\"],\"image_url\":\"http://ia.media-imdb.com/images/M/MV5BNTEyMjAwMDU1OV5BMl5BanBnXkFtZTcwNDQyNTkxMw@@._V1_SX400_.jpg\",\"plot\":\"A meek hobbit of The Shire and eight companions set out on a journey to Mount Doom to destroy the One Ring and the dark lord Sauron.\",\"rank\":180,\"running_time_secs\":10680,\"actors\":[\"Elijah Wood\",\"Ian McKellen\",\"Orlando Bloom\"]}},{\"year\":2013,\"title\":\"Red 2\",\"info\":{\"directors\":[\"Dean Parisot\"],\"release_date\":\"2013-07-18T00:00:00Z\",\"rating\":7,\"genres\":[\"Action\",\"Comedy\",\"Crime\",\"Thriller\"],\"image_url\":\"http://ia.media-imdb.com/images/M/MV5BMjI2ODQ4ODY3Nl5BMl5BanBnXkFtZTcwNTc2NzE1OQ@@._V1_SX400_.jpg\",\"plot\":\"Retired C.I.A. agent Frank Moses reunites his unlikely team of elite operatives for a global quest to track down a missing portable nuclear device.\",\"rank\":181,\"running_time_secs\":6960,\"actors\":[\"Bruce Willis\",\"Helen Mirren\",\"John Malkovich\"]}},{\"year\":2013,\"title\":\"Anchorman 2: The Legend Continues\",\"info\":{\"directors\":[\"Adam McKay\"],\"release_date\":\"2013-12-19T00:00:00Z\",\"genres\":[\"Comedy\"],\"image_url\":\"http://ia.media-imdb.com/images/M/MV5BMTM5NTY0NTUzOV5BMl5BanBnXkFtZTcwMDY2MzA3OQ@@._V1_SX400_.jpg\",\"plot\":\"With the 70s behind him, San Diego's top rated newsman, Ron Burgundy, returns to take New York's first 24-hour news channel by storm.\",\"rank\":182,\"actors\":[\"Will Ferrell\",\"Christina Applegate\",\"Paul Rudd\"]}},{\"year\":2012,\"title\":\"Dredd\",\"info\":{\"directors\":[\"Pete Travis\"],\"release_date\":\"2012-07-11T00:00:00Z\",\"rating\":7,\"genres\":[\"Action\",\"Sci-Fi\"],\"image_url\":\"http://ia.media-imdb.com/images/M/MV5BODkyNDQzMzUzOF5BMl5BanBnXkFtZTcwODYyMDEyOA@@._V1_SX400_.jpg\",\"plot\":\"In a violent, futuristic city where the police have the authority to act as judge, jury and executioner, a cop teams with a trainee to take down a gang that deals the reality-altering drug, SLO-MO.\",\"rank\":183,\"running_time_secs\":5700,\"actors\":[\"Karl Urban\",\"Olivia Thirlby\",\"Lena Headey\"]}},{\"year\":2013,\"title\":\"The Smurfs 2\",\"info\":{\"directors\":[\"Raja Gosnell\"],\"release_date\":\"2013-07-28T00:00:00Z\",\"rating\":4.9,\"genres\":[\"Animation\",\"Comedy\",\"Family\",\"Fantasy\"],\"image_url\":\"http://ia.media-imdb.com/images/M/MV5BMTkyNDUxODg3MV5BMl5BanBnXkFtZTcwNjE5OTY2OQ@@._V1_SX400_.jpg\",\"plot\":\"The Smurfs team up with their human friends to rescue Smurfette, who has been kidnapped by Gargamel since she knows a secret spell that can turn the evil sorcerer's newest creation - creatures called the Naughties - into real Smurfs.\",\"rank\":184,\"running_time_secs\":6300,\"actors\":[\"Neil Patrick Harris\",\"Jayma Mays\",\"Katy Perry\"]}},{\"year\":2001,\"title\":\"Harry Potter and the Sorcerer's Stone\",\"info\":{\"directors\":[\"Chris Columbus\"],\"release_date\":\"2001-11-04T00:00:00Z\",\"rating\":7.3,\"genres\":[\"Adventure\",\"Family\",\"Fantasy\"],\"image_url\":\"http://ia.media-imdb.com/images/M/MV5BMTYwNTM5NDkzNV5BMl5BanBnXkFtZTYwODQ4MzY5._V1_SX400_.jpg\",\"plot\":\"Rescued from the outrageous neglect of his aunt and uncle, a young boy with a great destiny proves his worth while attending Hogwarts School of Witchcraft and Wizardry.\",\"rank\":185,\"running_time_secs\":9120,\"actors\":[\"Daniel Radcliffe\",\"Rupert Grint\",\"Richard Harris\"]}},{\"year\":2012,\"title\":\"21 Jump Street\",\"info\":{\"directors\":[\"Phil Lord\",\"Chris Miller\"],\"release_date\":\"2012-03-12T00:00:00Z\",\"rating\":7.1,\"genres\":[\"Action\",\"Comedy\",\"Crime\"],\"image_url\":\"http://ia.media-imdb.com/images/M/MV5BMTc3NzQ3OTg3NF5BMl5BanBnXkFtZTcwMjk5OTcxNw@@._V1_SX400_.jpg\",\"plot\":\"A pair of underachieving cops are sent back to a local high school to blend in and bring down a synthetic drug ring.\",\"rank\":186,\"running_time_secs\":6540,\"actors\":[\"Jonah Hill\",\"Channing Tatum\",\"Ice Cube\"]}},{\"year\":1980,\"title\":\"The Shining\",\"info\":{\"directors\":[\"Stanley Kubrick\"],\"release_date\":\"1980-05-23T00:00:00Z\",\"rating\":8.5,\"genres\":[\"Horror\",\"Mystery\"],\"image_url\":\"http://ia.media-imdb.com/images/M/MV5BODMxMjE3NTA4Ml5BMl5BanBnXkFtZTgwNDc0NTIxMDE@._V1_SX400_.jpg\",\"plot\":\"A family heads to an isolated hotel for the winter where an evil and spiritual presence influences the father into violence, while his psychic son sees horrific forebodings from the past and of the future.\",\"rank\":187,\"running_time_secs\":8760,\"actors\":[\"Jack Nicholson\",\"Shelley Duvall\",\"Danny Lloyd\"]}},{\"year\":2012,\"title\":\"The Cabin in the Woods\",\"info\":{\"directors\":[\"Drew Goddard\"],\"release_date\":\"2012-03-09T00:00:00Z\",\"rating\":7.1,\"genres\":[\"Horror\",\"Mystery\",\"Thriller\"],\"image_url\":\"http://ia.media-imdb.com/images/M/MV5BNTUxNzYyMjg2N15BMl5BanBnXkFtZTcwMTExNzExNw@@._V1_SX400_.jpg\",\"plot\":\"Five friends go for a break at a remote cabin in the woods, where they get more than they bargained for. Together, they must discover the truth behind the cabin in the woods.\",\"rank\":188,\"running_time_secs\":5700,\"actors\":[\"Kristen Connolly\",\"Chris Hemsworth\",\"Anna Hutchison\"]}},{\"year\":1994,\"title\":\"Forrest Gump\",\"info\":{\"directors\":[\"Robert Zemeckis\"],\"release_date\":\"1994-06-23T00:00:00Z\",\"rating\":8.7,\"genres\":[\"Drama\",\"Romance\"],\"image_url\":\"http://ia.media-imdb.com/images/M/MV5BMTQwMTA5MzI1MF5BMl5BanBnXkFtZTcwMzY5Mzg3OA@@._V1_SX400_.jpg\",\"plot\":\"Forrest Gump, while not intelligent, has accidentally been present at many historic moments, but his true love, Jenny Curran, eludes him.\",\"rank\":277,\"running_time_secs\":8520,\"actors\":[\"Tom Hanks\",\"Robin Wright\",\"Gary Sinise\"]}},{\"year\":2013,\"title\":\"Parker\",\"info\":{\"directors\":[\"Taylor Hackford\"],\"release_date\":\"2013-01-18T00:00:00Z\",\"rating\":6.1,\"genres\":[\"Action\",\"Crime\",\"Thriller\"],\"image_url\":\"http://ia.media-imdb.com/images/M/MV5BMTk4MzM2NTQ1Nl5BMl5BanBnXkFtZTcwODIyODY1OA@@._V1_SX400_.jpg\",\"plot\":\"A thief with a unique code of professional ethics is double-crossed by his crew and left for dead. Assuming a new disguise and forming an unlikely alliance with a woman on the inside, he looks to hijack the score of the crew's latest heist.\",\"rank\":278,\"running_time_secs\":7080,\"actors\":[\"Jason Statham\",\"Jennifer Lopez\",\"Michael Chiklis\"]}},{\"year\":2004,\"title\":\"The Chronicles of Riddick\",\"info\":{\"directors\":[\"David Twohy\"],\"release_date\":\"2004-06-03T00:00:00Z\",\"rating\":6.5,\"genres\":[\"Action\",\"Adventure\",\"Sci-Fi\",\"Thriller\"],\"image_url\":\"http://ia.media-imdb.com/images/M/MV5BMTM0ODA0NDU5N15BMl5BanBnXkFtZTYwMzkzMTk2._V1_SX400_.jpg\",\"plot\":\"5 years after Pitch Black, the wanted criminal Riddick arrives on a planet called Helion Prime, and finds himself up against an invading empire called the Necromongers, an army that plans to convert or kill all humans in the universe.\",\"rank\":279,\"running_time_secs\":7140,\"actors\":[\"Vin Diesel\",\"Judi Dench\",\"Colm Feore\"]}},{\"year\":1994,\"title\":\"The Lion King\",\"info\":{\"directors\":[\"Roger Allers\",\"Rob Minkoff\"],\"release_date\":\"1994-06-15T00:00:00Z\",\"rating\":8.4,\"genres\":[\"Animation\",\"Adventure\",\"Drama\",\"Family\",\"Musical\"],\"image_url\":\"http://ia.media-imdb.com/images/M/MV5BMjEyMzgwNTUzMl5BMl5BanBnXkFtZTcwNTMxMzM3Ng@@._V1_SX400_.jpg\",\"plot\":\"Tricked into thinking he killed his father, a guilt ridden lion cub flees into exile and abandons his identity as the future King.\",\"rank\":280,\"running_time_secs\":5340,\"actors\":[\"Matthew Broderick\",\"Jeremy Irons\",\"James Earl Jones\"]}},{\"year\":2012,\"title\":\"Jack Reacher\",\"info\":{\"directors\":[\"Christopher McQuarrie\"],\"release_date\":\"2012-12-20T00:00:00Z\",\"rating\":6.9,\"genres\":[\"Action\",\"Crime\",\"Thriller\"],\"image_url\":\"http://ia.media-imdb.com/images/M/MV5BMTM1NjUxMDI3OV5BMl5BanBnXkFtZTcwNjg1ODM3OA@@._V1_SX400_.jpg\",\"plot\":\"A homicide investigator digs deeper into a case involving a trained military sniper who shot five random victims.\",\"rank\":281,\"running_time_secs\":7800,\"actors\":[\"Tom Cruise\",\"Rosamund Pike\",\"Richard Jenkins\"]}},{\"year\":2011,\"title\":\"The Girl with the Dragon Tattoo\",\"info\":{\"directors\":[\"David Fincher\"],\"release_date\":\"2011-12-12T00:00:00Z\",\"rating\":7.8,\"genres\":[\"Crime\",\"Drama\",\"Mystery\",\"Thriller\"],\"image_url\":\"http://ia.media-imdb.com/images/M/MV5BMTczNDk4NTQ0OV5BMl5BanBnXkFtZTcwNDAxMDgxNw@@._V1_SX400_.jpg\",\"plot\":\"Journalist Mikael Blomkvist is aided in his search for a woman who has been missing for forty years by Lisbeth Salander, a young computer hacker.\",\"rank\":282,\"running_time_secs\":9480,\"actors\":[\"Daniel Craig\",\"Rooney Mara\",\"Christopher Plummer\"]}},{\"year\":2009,\"title\":\"Avatar\",\"info\":{\"directors\":[\"James Cameron\"],\"release_date\":\"2009-12-10T00:00:00Z\",\"rating\":7.9,\"genres\":[\"Action\",\"Adventure\",\"Fantasy\",\"Sci-Fi\"],\"image_url\":\"http://ia.media-imdb.com/images/M/MV5BMTYwOTEwNjAzMl5BMl5BanBnXkFtZTcwODc5MTUwMw@@._V1_SX400_.jpg\",\"plot\":\"A paraplegic Marine dispatched to the moon Pandora on a unique mission becomes torn between following his orders and protecting the world he feels is his home.\",\"rank\":283,\"running_time_secs\":9720,\"actors\":[\"Sam Worthington\",\"Zoe Saldana\",\"Sigourney Weaver\"]}},{\"year\":2012,\"title\":\"End of Watch\",\"info\":{\"directors\":[\"David Ayer\"],\"release_date\":\"2012-09-08T00:00:00Z\",\"rating\":7.6,\"genres\":[\"Crime\",\"Drama\",\"Thriller\"],\"image_url\":\"http://ia.media-imdb.com/images/M/MV5BMjMxNjU0ODU5Ml5BMl5BanBnXkFtZTcwNjI4MzAyOA@@._V1_SX400_.jpg\",\"plot\":\"Shot documentary-style, this film follows the daily grind of two young police officers in LA who are partners and friends, and what happens when they meet criminal forces greater than themselves.\",\"rank\":284,\"running_time_secs\":6540,\"actors\":[\"Jake Gyllenhaal\",\"Michael Pena\",\"Anna Kendrick\"]}},{\"year\":2012,\"title\":\"Snow White and the Huntsman\",\"info\":{\"directors\":[\"Rupert Sanders\"],\"release_date\":\"2012-05-30T00:00:00Z\",\"rating\":6.1,\"genres\":[\"Adventure\",\"Drama\",\"Fantasy\"],\"image_url\":\"http://ia.media-imdb.com/images/M/MV5BMTQ1NDA0MTk5OV5BMl5BanBnXkFtZTcwMTM4NDMwNw@@._V1_SX400_.jpg\",\"plot\":\"In a twist to the fairy tale, the Huntsman ordered to take Snow White into the woods to be killed winds up becoming her protector and mentor in a quest to vanquish the Evil Queen.\",\"rank\":285,\"running_time_secs\":7620,\"actors\":[\"Kristen Stewart\",\"Chris Hemsworth\",\"Charlize Theron\"]}},{\"year\":2013,\"title\":\"Mama\",\"info\":{\"directors\":[\"Andres Muschietti\"],\"release_date\":\"2013-01-17T00:00:00Z\",\"rating\":6.3,\"genres\":[\"Horror\",\"Thriller\"],\"image_url\":\"http://ia.media-imdb.com/images/M/MV5BMTM5MjIwNDAwMl5BMl5BanBnXkFtZTcwNzQyOTY0OA@@._V1_SX400_.jpg\",\"plot\":\"Annabel and Lucas are faced with the challenge of raising his young nieces that were left alone in the forest for 5 years.... but how alone were they?\",\"rank\":286,\"running_time_secs\":6000,\"actors\":[\"Jessica Chastain\",\"Nikolaj Coster-Waldau\",\"Megan Charpentier\"]}},{\"year\":2012,\"title\":\"This Is 40\",\"info\":{\"directors\":[\"Judd Apatow\"],\"release_date\":\"2012-12-20T00:00:00Z\",\"rating\":6.2,\"genres\":[\"Comedy\"],\"image_url\":\"http://ia.media-imdb.com/images/M/MV5BNzQxMDQ1NjA4N15BMl5BanBnXkFtZTcwNTE5MjQ3OA@@._V1_SX400_.jpg\",\"plot\":\"Pete and Debbie are both about to turn 40, their kids hate each other, both of their businesses are failing, they're on the verge of losing their house, and their relationship is threatening to fall apart.\",\"rank\":287,\"running_time_secs\":8040,\"actors\":[\"Paul Rudd\",\"Leslie Mann\",\"Maude Apatow\"]}},{\"year\":2004,\"title\":\"Little Black Book\",\"info\":{\"directors\":[\"Nick Hurran\"],\"release_date\":\"2004-08-06T00:00:00Z\",\"rating\":5.1,\"genres\":[\"Comedy\",\"Romance\",\"Drama\"],\"image_url\":\"http://ia.media-imdb.com/images/M/MV5BMTY0ODczNzM4OV5BMl5BanBnXkFtZTcwNzcyMDUzMw@@._V1_SX400_.jpg\",\"plot\":\"A woman snoops through her boyfriend's palm pilot and reveals his former girlfriends, which causes her to question why they're still listed in his little black book.\",\"rank\":5000,\"running_time_secs\":6660,\"actors\":[\"Brittany Murphy\",\"Ron Livingston\",\"Holly Hunter\"]}}]","vt":"json"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":380,"y":1460,"wires":[["ba7534250f747f2a"]]},{"id":"ba7534250f747f2a","type":"debug","z":"5847b7aa62131d37","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":560,"y":1460,"wires":[]}]

image

oh
this really worked out what i wanted!
Thank you very much!

interesting, I'll take a look at it. Thanks!

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