Q:

How do I only select images using reddit json?

I am trying to get a list of images from a specific reddit and send them to the user randomly. Is there a way to only get the json that lists a url?
I try to just get to this path down below, but it ends up throwing an error sense it is a nested array
  "kind": "Listing",
  "data": {
    "modhash": "2l53o1urucfcc06e46b02a400997e1d810b258af76c74bce9d",
    "dist": 25,
    "children": [
      {
        "kind": "t3",
        "data": {
          "thumbnail": "https://b.thumbs.redditmedia.com/AihwJOuW0jmGvdJqd71rVCQCA7nJYc4KoyclJttNn_c.jpg",

I want it to return a random image from the huge array. again my attempts threw in error about formatting the parser
every post is in the array of children, I want to access the lot of thumbnails and list them
I get the json from reddit.com/r/pics/top.json
I use request 
console.log(parsedData["data"]["children"]...)

I do not know how to get past that to data without throwing an error

A:

parsedData.data.children.forEach(imageUrl => {
   console.log(imageUrl.data.thumbnail)
})

