I have the following JSON object:
I'm not sure how to parse this into usable variables in Javascript.
One thing that makes this tricky is that the names will not always be the same.
materialid could be named othernameid.
title could be named somethingelsetitle.
I'd need to be able to dynamically know each name and it's value.
Thanks!
{
"3":[
{
"materialid":3,
"title":"New Titlted Stuff",
"description":"Description of Stuff",
"datecreated":"05/09/2018",
"keywords":"Keywords about stuff",
"material":"7_html_logo.png"
}
],
"4":[
{
"materialid":4,
"title":"ABC title",
"description":"ABC desc",
"datecreated":"05/23/2018",
"keywords":"ABC Keywords",
"material":"8_angular_logo.png"
}
],
"5":[
{
"materialid":5,
"title":"4th try",
"description":"describe 4th thing",
"datecreated":"05/14/2018",
"keywords":"4th thing keywords",
"material":null
}
]
}