Json からの配列イメージが 1 つあります。
images=JSON.decode(images);
これは配列値です:
[
{
"title": "",
"description": "",
"name": "loc commerciale.jpg"
},
{
"title": "",
"description": "",
"name": "foto2.jpg"
},
{
"title": "",
"description": "",
"name": "foto 1.jpg"
},
{
"title": "",
"description": "",
"name": "a01.jpg"
}
]
name から値を取得します:
images.each(function(image){
alert(image.name);
});
最初の値の名前だけを取得する必要があります
php のように:
$images = (array) json_decode($row->images);
$first = true;
foreach ($images as $k => $image) {
if ($first)
{
$firstimage= $image->name;
$first = false;
}
}