これはおそらく簡単ですが、このJSONオブジェクトの値にアクセスする必要があります。どうすればいいのかわかりません。オブジェクトは次のとおりです。
{
"COLUMNS": ["NAME"],
"DATA": [["YOUNG, MARIA "]]
}
「obj.NAME」でうまくいくと思っていたのですが、未定義と書いてあります。これが私のAJAX呼び出しです:
$.ajax({
//this is the php file that processes the data and send mail
url: 'components/Person.cfc',
//GET method is used
type: "POST",
//pass the data
data: {
method: "getGroup",
uid: $('#cardText').val()
},
success: function(response) {
var obj = $.trim(response);
var obj = jQuery.parseJSON(obj);
$('#form_result').html(obj.NAME);
},