i want to make a system that searches for data in json. so i have the json on an rest api. the api looks like this
[
{
"info": "cute but big animal",
"type": "pig",
"name": "patty"
},
{
"info": "Barks all the time",
"type": "dog",
"name": "parker"
},
{
"info": "Makes delicious eggs",
"type": "chicken",
"name": "chicky"
}
]
there are alot of values with the same name.
i googled alot to find some awnsers but they all say i need to number.
data.value[1]
i want to be able to search for patty and get the info & type just get the json data
Javascript or nodeJS