How do I get a JSON field with the name part#
The title really sums it up, when I try to access the field, I get a parse error in javascript
var data = JSON.parse(xhr.responseText开发者_Go百科).features
for (var x in data) {
var o = data[x];
Ti.API.info("part number" + o.part#);
}
Use square bracket notation to access properties with names that include characters not allowed in an identifier.
o['part#']
精彩评论