Looking for help with filtering and pushing data from a JSON array? Specifically, I need to filter arrays where the data's attrs
property includes a src
attribute. It's proving challenging for me, so any assistance would be greatly appreciated.
This is what my JSON data looks like:
DATA:
[
{
"data":{},
"type":"image",
"attrs":{
"x":92,
"y":163,
"width":100,
"height":100,
"src":"http://localhost:63342/wodrobs/app/scripts/views/img/top.jpg",
"cursor":"move",
"opacity":1
},
"transform":"",
"id":0
},
{
"data":{},
"type":"path",
"attrs":{
"fill":"none",
"stroke":"#000",
"stroke-dasharray":"- ",
"opacity":0.5
},
"transform":"",
"id":17
}
]