Questions tagged as 'json'

2
answers

How to insert data taken from a JSON file and put in a list with AngularJS

app.js (function(){ var myApp = angular.module('loja', []); myApp.controller('CarrinhoController', ['$scope','$http', function($scope, $http){ $scope.title = 'Lista de Produtos'; $http.get('js/produtos.json').succe...
asked by 31.10.2014 / 04:53
1
answer

ERROR: using GetJSON knockout

.ASPX FILE <head> <script src="scripts/jquery-1.4.4.js"></script> <script src="scripts/knockout-3.1.0.js"></script> <script src="scripts/jquery-1.4.4.min.js">&...
asked by 10.07.2014 / 20:57
1
answer

Print return text json in middle of code - JQuery / JavaScript / JSON

I have a chart that is created according to the year, which is passed by AJAX and returns a JSON containing the values to create the chart. Well, I send AJAX with the year, I return the JSON, however ... It makes a mistake, it creates everything...
asked by 20.06.2014 / 00:11
1
answer

PHP does not recognize Json code

I installed php + apache via Xampp. PHP is working, but does not recognize Json, does anyone know if I need to enable anything in php.ini? Returns the error: Notice: Undefined index: jsoncallback The return line is: echo $_GET["jsoncallb...
asked by 29.06.2014 / 15:41
1
answer

How to redeem a key in a Json using Gson (Google)

Good evening. For the first time I'm manipulating a Json file with Java, because many colleagues have always told me that it is very easy to manipulate data, especially with the Google library (Gson). Well, a question that came up to me is...
asked by 22.08.2014 / 05:46
1
answer

Selecting data in cURL Java

I would like to know how to select the data using the gson library. BufferedReader reader = null; URL endereco = new URL("https://prod.api.pvp.net/api/lol/"+Server+"/v1.4/summoner/by-name/"+Jogador+"?api_key="+API_KEY); try { B...
asked by 20.06.2014 / 20:17
1
answer

jquery sorts my date automatically

I generate a json in any url, like this: {"130":"chocolate","129":"banana","120":"chiclete"} I'll get it with $ .get $.get(url,function(data){ console.debug(data); },'json'); result (it sorts automatically, without me needing it):...
asked by 31.07.2014 / 01:02
2
answers

Formatting JSON in cakephp

I'm generating a json from a find in CakePhp. Controller: public function listar() { $this->layout = 'ajax'; $this->set('resultados', $this->Sala->listarSala()); } Model: public function listar...
asked by 09.05.2014 / 14:18
1
answer

ResponsiveSlides with JSON as DataSource

After much searching for a very simple image gallery I ended up finding ResponsiveSlides.js which is not only simple enough, but also works ( smartphones even though it does not recognize gestures for slideshows - but that's another story)....
asked by 24.05.2014 / 16:08
1
answer

Entity - Infinite Loop in JSON conversion

What happens I'm having a problem using Entity with my MVC application. What happens is that when converting a class to JSON the program goes into an infinite loop and returns no-content Example Taking as an example the re...
asked by 29.11.2018 / 19:52