You can't. There is no Display property in the array, it's an array containing two strings.
The strings are similar to JSON, but not enough to be parsed.
If you make the strings follow the JSON standard, you can parse each item in the array into an object, then you can access the Display property:
var response = '["{ \\"Display\\": \\"string1\\", \\"Sell\\": \\"string2\\" }", "{ \\"Display\\": \\"string1\\", \\"Sell\\": \\"string2\\" }"]';
var codes = jQuery.parseJSON(response);
$.each(codes, function (key, value) {
var obj = jQuery.parseJSON(value);
alert(obj.Display);
});
Demo: http://jsfiddle.net/Guffa/wHjWf/
Alternatively, you can make the entire input follow the JSON standard, so that you can parse it into an array of objects:
var response = '[{ "Display": "string1", "Sell": "string2" }, { "Display": "string1", "Sell": "string2" }]';
var codes = jQuery.parseJSON(response);
console.log(codes);
$.each(codes, function (key, value) {
alert(value.Display);
});
Demo: http://jsfiddle.net/Guffa/wHjWf/1/
codesvalue should be like this:[{ "Display" : "string1", "Sell" : "string2" }, { "Display" : "string1", "Sell" : "string2" }].