I am getting the following information from a parsed JSON file. How can I get the value of the [ARRAY] element from the last 'gfs' element,(or whatever it is called)? I have never worked on JSON, What all should I know to do this?
data: [
{
url: 'https://playy-test.s3.ap-south-1.amazonaws.com/hidden.mp4',
typ: 'base',
pos: 0,
gfs: null
},
{
url: 'https://playy-test.s3.ap-south-1.amazonaws.com/hidden.mp4',
typ: 'node',
pos: 1,
gfs: null
},
{
url: 'https://playy-test.s3.ap-south-1.amazonaws.com/hidden.mp4',
typ: 'node',
pos: 2,
gfs: null
},
{
url: 'https://playy-test.s3.ap-south-1.amazonaws.com/hidden.mp4',
typ: 'boomerang',
pos: 3,
gfs: [Array]
}
]
[ARRAY] holds some information, I need.
I got this by parsing a JSON string, and printing it to the console.
PS. Only using Javascript.