Questions tagged as 'json'

2
answers

Read JSON and show in html using angularJS

I'm trying to read data from a Json file in html using AngularJS, but I'm not getting it. Here is part of the index.html code: <div ng-app="app"> <div class="page-header" id="principal" ng-controller="HomeCtrl">...
asked by 29.08.2017 / 16:56
1
answer

How to sort by several fields with Ionic and / or AngularJS of a JSON?

I'm trying to sort fields dynamically by Ionic and AngularJs. I started by using the Modal Select plugin with the button like this: <button class="button button-stable button-block icon-left ion-android-restaurant" modal-select="" ng-mode...
asked by 07.04.2017 / 14:51
1
answer

Pull fixed data from .json to select on form

I do not know what is wrong that is not pulling the json data, my goal is to pull the city / neighborhood data to display through another javascript code, however I can not make the select display the cities and neighborhoods that are in the jso...
asked by 22.03.2017 / 15:30
1
answer

How to show connection errors in HTML with a JSON?

I was developing HTML that accessed a JSON file. When, out of nowhere, the internet dropped from my house and I ended up thinking about it: Is there a way to get a connection error and warn the user of this error? For example, if I give a...
asked by 27.02.2017 / 13:25
1
answer

Send more than one JSON file in a single AJAX request

I am requesting two JSON files for the getJSON function from JQuery. I'm trying to send them via AJAX but I can not. I've done the following: var data = '[{"agents": '+agents +', "projects":' + projects + ', "spaces": ' +spaces+', "events":' +...
asked by 19.12.2016 / 14:42
2
answers

Ajax with multidimensional JSON type return

Save, I buggy here trying to get ajax to fetch data from a JSON and I need a class / help to understand how I pull the values from an array of objects (I think that's it). I have the following code, it's kind of confusing, but my goal is to do t...
asked by 02.11.2016 / 05:10
1
answer

How to read a JSON from a second link in an API?

Talk guys, I'm trying to get the JSON, from a second link that is provided by the API. But it gives error. Here is the code: private static String URL = "https://google-play-api-znbelznpav.now.sh/api/apps/com.fungames.sniper3d/reviews/?lang=pt...
asked by 09.10.2016 / 17:03
1
answer

How to get a specific object from a Json / XML?

I need to get the content within <extract> to use in my application, but I can not. I have tried to create a class with the same objects, I tried to use the regex, but without success. I have the following XML : <api b...
asked by 07.09.2017 / 00:04
1
answer

Remove last jSON item with jQuery

I have the json messe format: { "indice1":['nome1', 'nome2'], "indice2":['nome1', 'nome2', 'nome3'] } What I want is when the user clicks the delete button it deletes the last item from json. In the case of jSON above it would exclude no...
asked by 08.09.2016 / 05:03
2
answers

Upload Json to Google Maps

I'm drawing a polygon on the map of google, I got it, but how big it is was a very repetitive code that I would like to isolate in a .json, but I could not. I tried to do something simple with Jquery loading the file and putting it in a varia...
asked by 21.06.2016 / 14:46