I have a json like this
{"queueDetails":
[
{
"filepath":"video1.mp4",
"format":{"Video":"mp4"},
"formatpath":{"Video":"http://localhost/test"},
"outputpath":{"Video":"D:/video/filename_video1.mp4"}
},
{
"filepath":"video2.mp4",
"format":{"Video":"mp4"},
"formatpath":{"Video":"http://localhost/test"},
"outputpath":{"Video":"D:/video/filename_video2.mp4"}
},
]
}
Here I want to iterate over it, and I want to take the first array element and submit to the other function and wait for its status. When the first process is completed then I want to pick the next array element and do the same operation for the rest of the array's elements too.
How can we achieve this in node js?
How to implement a wait logic inside the iteration?
I'm aiming for a one by one operation by using this json.