Question revised for clarity:
Im having issue parsing json file. I want to output the value of the basename labeled "image_01". So the it will only outputs http://blog.url/news/images/201516.jpg
<div id="placeholder"></div>
<script>
var data={
"items": [
{
"title": "This is The Title",
"customFields": [
{
"basename": "image_01",
"value": "<form mt:asset-id=\"352706\" class=\"mt-enclosure mt-enclosure-image\" style=\"display: inline;\"><a href=\"http://blog.com/news/images/20150116.jpg\">20150116.jpg</a></form>"
}
],
"permalink": "http://blog.com/index.php"
}
]
}
document.getElementById("placeholder").innerHTML=data.items[0].title + " " + data.items[0].permalink+"--"+ data.items[0].customFields.basename.image_01;
</script>
http://jsfiddle.net/v57s2csa/ fixed
I think particular problem lies in
data.items[0].customFields.basename.image_01;