Questions tagged as 'json'

1
answer

Obtaining a specific property of a JSON object

I have the following JSON: { "2016": { "mes": { "2": { "dia": { "5": { "-KcENENmSJcZp56clzz5": { "descricao": "teste", "valor": "99" } } }...
asked by 05.02.2017 / 20:58
1
answer

Adding elements to an array

Personally, I'm sure it's a very simple question, but I'm not sure how to do it. First scenario - I have the following array: $century = array( 'decade' => array( array( 'year' => '2017', 'months' =...
asked by 08.03.2017 / 15:49
2
answers

Push in JSON Object AngularJS

How do I add 1 item to a json object in angularJS. In case I have: {COD: 29, MOTIVO: "teste"} And I'd like you to stay: {COD: 29, MOTIVO: "teste", ID : 12345789} Home I tried the following: $scope.cadastroSolicitacao = function(...
asked by 10.02.2017 / 20:47
2
answers

Filter in Json in AngularJS

I would like to filter this JSON by COD and bring only the chosen one. I'm bringing the value of the code through the url and would like to filter only to display the name of the chosen option. NOTE: The user will not enter the value because it...
asked by 10.02.2017 / 16:32
4
answers

Upload url on same page

I bought the service from an SMS company. But to send the SMS I have to "rotate" the link below: https://site.com/apiJSON.php?data={"login":"[email protected]","senha":"SENHA","campanha":"ID 1234","mensagens":{"1":{"numero":"2799999999","msg"...
asked by 11.08.2016 / 14:19
1
answer

Problem consuming Json with javascript

I'm trying to consume this link link with this method: $.getJSON("http://wsloterias.azurewebsites.net/api/sorteio/getresultado/1", function (json) { alert(1); }); But it does not read .. I tested it with other websites and it...
asked by 24.12.2016 / 20:39
2
answers

How do I get JSON from a URL to use in my PHP file?

I want to get the JSON dollar value displayed at this URL: link To use in my php file, can you do this with PHP only? It also has this XML option: link     
asked by 31.05.2016 / 15:30
2
answers

Search in Ajax within div clone jquery

I have a search in an input that returns the result in ajax, type autocomplete that is working (when I type 3 first digits it shows the results), but when I put this input inside a div "clone" (jquery) it does not search and returns no results ....
asked by 09.12.2016 / 15:03
1
answer

Change src from iframe and post date with javascript

I have a script where I change the src of the iframe by java script (it has to be by this methodo), but I do not know how to send data by post only by get as it is only by the data in the url someone knows how to do this <div id="overlayedt...
asked by 06.07.2016 / 03:23
3
answers

print json on the pure javascript screen

I have this json structure: "[{ "nome":["fulano 1","fulano 2","fulano 3","fulano 4"], "site":["sitefulano1.html","sitefulano2.html.html","sitefulano3.html","sitefulano2.html"]}]" Gero it this way with php and pdo mysql: <?php $valorV1...
asked by 03.04.2016 / 20:45