I'm sending data from my client like this:
data = {
Checked: ??
Matches: null,
Text: null,
}
My data is stored like this:
var a = {
"Answers": [
{
"answerUId":1,
"correct":true,
"checked":true,
"text":"`public`"
},
{
"answerUId":2,
"correct":false,
"checked":true,
"text":"`static`"
}
]
}
How can I get out the values of just the checked field and use it to make another array but with just the one parameter so I can use this to replace the ?? in my code?
What I need is:
[ true,
false ]
Answerswhich haschecked:true?arraywith just the value ofcheckedfrom ever set of data?