Questions tagged as 'json'

1
answer

What's wrong with this Chrome extension? [closed]

I made a small extension in Chrome, and it is not working properly. My extension simply randomizes a word between one of those randomVals and displays. I would like you to help me know what is wrong with it. Here is the code: Manifest...
asked by 10.10.2015 / 21:37
4
answers

Factory returns blank result

Good Night. I have a factory with the function all that takes through $ http, an external json, only it is returning blank. Json's address is link angular.module('kibeliciaApp.services', []) .factory('Categorias', function($http) { var cat...
asked by 30.03.2016 / 14:14
3
answers

How to transform data into array with JSON?

I have to get the data being accumulated in the valore variable and turn them into an array so that I can get them using HttpRequest in an HTML page. How do I do this? // Classe para chamar o JSON. function json(){ var qtd...
asked by 16.03.2015 / 15:40
1
answer

Insert selected records into another table

I need to export data from a table that I have in our intranet to a table in the internet, I created a table where I show the events and in that the user can choose the ones that want to export through checkbox selection. I pass the id (s) to...
asked by 24.07.2014 / 16:14
1
answer

How to insert values inside a key using List and JSON

I'm trying to do something that gives me output like this: [ { "Nome": "João", "Comprou": [ "Carro": "Sedan", "Preco": "12000", "Moto": "Honda", "Preco": "8000"...
asked by 30.10.2014 / 21:04
2
answers

JSon is not picking up the data

I'm doing some testing with ajax , and I made a very simple script in php shown below: index.php <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"/> <...
asked by 05.04.2014 / 04:38
1
answer

Consume Javascript JSON data [closed]

I need a help with javascript. I'm trying to show in my index.html the data I'm consuming from a json. However when opening the index and waiting for the document to be loaded the items come with undefined. $(document).ready(function () {...
asked by 05.01.2019 / 15:07
2
answers

Select multiple lines with PHP JSON

I'm using SELECT to collect multiple rows from my database. Using the query format below I have the expected result. while ($this->result = $this->pQuery->fetch(PDO::FETCH_ASSOC)) { $this->json[] = $this->result; }...
asked by 29.12.2014 / 13:24
1
answer

Problem loading data from a table with angularjs and api rails

My front-end code: var listaDeProdutos = function(){ $http.get("http://localhost:3000/produtos").success(function(data,status){ $scope.listaProdutos = data; }).error(function(data,status){ console.log("error");...
asked by 18.09.2015 / 15:09
1
answer

Save words with python accents

I have this json file: {"certa": 1, "vez": 7, "quando": 13, "tinha": 6, "seis": 7, "anos": 6, "vi": 4, "num": 4, "livro": 3, "sobre": 6, "a": 47, "floresta": 1, "virgem": 1, "hist\u00e3\u00b3rias": 1, "vividas": 1, "uma": 31, "imponente": 1, "...
asked by 18.12.2018 / 23:04