0
Hello, I need to extract only 1 image of this Json. Here is my angular code to pull the records from the api via get.
var app = angular.module('myApp', []);
app.controller('carrosCtrl', function($scope, $http) {
$http.get("http://www.folhacar.com.br/api/listAnuncios?revenda_id=528&cnpj=13733235000134").success(function(data) {
$scope.nomes = data;
});
});
The field in this api is "images":["imagem01","imagem02","imagem03"]
This is actually an array and not a JSON.
– Daniela Morais
@Danielamarquesdemorais this is actually a JSON with an array inside; because it has an array it is impossible to be an
Object
– MoshMage
@Moshmage Perfect, really. He implied that the "json" element he referred to was only
"imagens":["imagem01","imagem02","imagem03"]
– Daniela Morais