I encountered an issue while trying to convert an object string from a list of arrays using the JSON.parse method. Despite successfully converting the object string to an object, it appears empty when used within ng-repeat.
Jade
.item.col-md-4(ng-repeat='p in searchData | filter: paginate | orderBy: sortKey ')
// `p` represents an object of strings, such as "{id:2, name:'abel'}"
- var property = JSON.parse(""{{ p }}""); // Error occurs at this line
+AddPropertyCard(property)
SearchData
[{id:0, name:"abel"},{id:1, name:"julia"}]
Error
var property = JSON.parse("");
Unexpected token { in JSON at position 1