Just a Quick Query:
Excuse me, I am new to Typescipt & RxJS. I have this JSON data:
[
{
"ID": "",
"UEN": "",
"Name": "",
"Address": "",
"Telephone": "",
"Fax": "",
"Email": "",
"Website": "",
"Postal": "",
"Status": ,
"TimeCreated": ,
"TimeUpdated": ,
"Workheads": [{
"ID": "",
"Name": "",
"Code": ""
},
{
"ID": "",
"Name": "",
"Code": ""
}
]
},
...
]
This JSON is being fetched into my angular app through an Observable from an HTTP get() request.
I am looking for help in filtering the workhead.Code section in order to obtain specific JSON objects within the array by matching the inner workhead.Code with a user-provided string (for example, workhead.Code == 'CS2230').
Your assistance would be greatly appreciated.