i'm working with angular js and i have the following array that contains many json object , each objects has the property "isSingle" which contains "true" or "false" , my issue is how to convert this property to boolean true or false :
[
{
"noFolder": "AW343",
"type": "T7",
"creationDate": "22/05/2017",
"isSingle": "true"
},
{
"noFolder": "AW35",
"type": "T34",
"creationDate": "09/05/2017",
"isSingle": "false"
},
{
"noFolder": "ASW3",
"type": "T3",
"creationDate": "05/07/2017",
"isSingle": "true"
},
{
"noFolder": "BG5",
"type": "T1",
"creationDate": "22/12/2018",
"isSingle": "false"
}
]
my desired result is to have objects like :
{
"noFolder": "ASW3",
"type": "T3",
"creationDate": "05/07/2017",
"isSingle": true
}
do you have any idea about how to change the type of the property isSingle to bbolean. i'm using angularjs...