Questions tagged as 'json'

1
answer

Asynchronous server responses, for AJAX route calls

I have an application that at the end of loading a page I make an AJAX request that takes about 20 seconds. After this request my page continues to function normally so when I try to make another AJAX request it waits for the first one to ret...
asked by 27.08.2014 / 18:55
1
answer

'Load more' button duplicates or does not work AJAX / JSON

Personal oops, all right? Next, I have a table that is fed with content from an external file in JSON (created from PHP with data coming from the DB). When you open the site, the table comes with only 2 records and clicking 'Load more' plus 2...
asked by 14.03.2015 / 16:26
1
answer

How to transoform JSON into an array of objects of a specific class, and does this class have compound attributes?

I encountered the following problem when trying to transform a String JSON into object list. I have the following situation: I have a Response class that has some attributes, among them a list of " Post ", an object of cla...
asked by 17.05.2015 / 05:09
1
answer

Ajax function for MVC controller

I have this function with array and I am not able to pass to the controller values, I listing, it appears correctly, I use angular. $scope.addItem = function (user) { $scope.items.push({ de: $scope.total,...
asked by 06.06.2018 / 20:43
1
answer

Transfer the keys and values from a JSON to PHP variables

How to transfer data from a JSON: {"resultado":true,"cadastros":[{"id":"12345","nome":"Augusto","idade":"30"},{"id":"23411","nome":"Carlos","idade":"93"},{"id":"13451","nome":"Bruno","idade":"23"}],"mensagem":"Success"} For variable...
asked by 02.04.2014 / 18:19
0
answers

Handling JSON Response with Retrofit in Android Studio

To be very clear I'm developing a simple application test, where my user types the cpf of a registered customer and their data as clients appear on the screen. My server returns me a json with a simple structure like this: {"id":1,"name":"Luca...
asked by 23.11.2018 / 13:39
0
answers

How to read a JSON file to render HTML list

I have a difficulty in an application that le json file and renders it in HTML, I am not able to access the object correctly, the variable products is as undefined. can anybody help me? if you have any other way to resolve I'm also open html...
asked by 14.11.2018 / 03:26
0
answers

Reading a JSON by http in AngularJS does not work

Hello I'm trying to read a JSON via http using AngularJS (I need to use AngularJS) and I can not even display the first JSON data since it does not have a string that I can call in function (response) in $ scope.countries = response. ? I do not...
asked by 09.11.2018 / 20:45
1
answer

Ajax request does not work - success does not work

I've done the following function: $("#CategoryList").change(function () { $("#SubCategoryDropDown").empty(); $.ajax({ dataType: "json", url: '@Url.Action("GetSubCategory", "ProjectSubCategories")', type: 'POST', data: { id: $(...
asked by 19.08.2017 / 23:07
1
answer

Get data from a json file via url (javascript)

I'd like to know if you can get the data from this json ( link ) without downloading it. Currently I can get the data from it, but I would like to get it through the url (when there is an update in json, get the data automatically) My code looks...
asked by 03.09.2017 / 00:21