1
I have the following result in JSON:
{
"name": "test",
"count": 5,
"frequency": "Manual Crawl",
"version": 1,
"newdata": true,
"lastrunstatus": "success",
"thisversionstatus": "success",
"thisversionrun": "Wed Jun 24 2015 16:25:51 GMT+0000 (UTC)",
"results": {
"collection1": [
{
"property1": "",
"property2": "DIA DA TERRA",
"index": 1,
"url": "http://site.com.br"
},
I need to show only the property2 element, how to hide the other elements (property1, index, url) using javascript?
How do you hide? Do not show? That the server only sends part? You can explain better?
– Sergio
@Sergio this JSON result shows the following on the screen: EARTH DAY index 1 url http://www.site.com.br, when you should only show EARTH DAY.
– GustavoCave
I just got back to the computer, have you solved the problem? I went to the site but I couldn’t find what you refer.
– Sergio
@Sergio hasn’t figured it out yet...
– GustavoCave
Try to use: Return data[0].results.colletion1.property2; but it did not work. In case it was to show only property2 Element
– GustavoCave
put a little more of your code, so it might be easier to help
– periotto