0
I need to do exactly as requested on this post, take Json data and return in a specific field. User Jeffson Silva did exactly what I need and made it available in this Example.
Only I ran into the following problem: I can’t find the data in an external Json for "var data = [].
I tried to use "$.getJSON("dados.json", function (data) {..."
But it doesn’t work to get that data.
When manually placing the array data inside "var dados = []"
, works but when you try to fetch this data externally, it’s not working.
Can someone give me a light and show me how to do this using this code Example?
Thanks in advance
That link you have indicated has an invalid JSON. It lacks the last one
}
.– Sergio