I need your help, I'm learning NativeScript, here I read the txt file which has JSON data below output. After I fetch them I want to assign it to Array countries. But no luck :(
public countries: Array
console.log(response)
console.log(JSON.parse(JSON.stringify(response)))
Output:
[ { "name": "Afghanistan", "code": "AF" }, { "name": "Albania", "code": "AL" } ]
Please help. Regards,