Questions tagged as 'json'

1
answer

How to create javascript array object inside a FOR?

I need to pass an array object as follows, to api: [paulo = 1, gustavo = 2, amanda = 3,...] I have the following code: $scope.salvarHabilidades = function(pro){ var valores = pro.filter(function(o,i){ return o.habilidades ==...
asked by 24.05.2017 / 21:04
1
answer

How to get a json list from an Api in JAVA?

I have the following return of an api {"type":"champion","version":"7.10.1","data":{"89":{"id":89,"key":"Leona","name":"Leona","title":"a Alvorada Radiante"},"110":{"id":110,"key":"Varus","name":"Varus","title":"a Flecha da Vingança"}...
asked by 26.05.2017 / 13:13
2
answers

How to get JSON data with Angular

I am studying angular and I am trying to receive JSON data from a webservice, but it has the following error:    XMLHttpRequest can not load    link . At the   'Access-Control-Allow-Origin' header is present on the requested   resource. Orig...
asked by 27.10.2016 / 20:03
1
answer

Pass data from api volley to another screen

I have an app that gets given via api using volley My code: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_tela1); ImageView m...
asked by 03.01.2017 / 19:32
1
answer

Error making GET of image url on Json Android

I have the following code: private class DownloadJsonAsyncTask extends AsyncTask<Void, Void, Void> { @Override protected void onPreExecute() {...} @Override protected Void doInBackground(Void... voids) { p =...
asked by 25.09.2016 / 16:51
1
answer

Popular table with data from a JSON

Hello, I need to populate a table according to what the user chooses in an input range, example in the range he chooses the value $ 200,000 ai at the end of filling the form returns me a table (done with ul and li) with the data referring to the...
asked by 04.09.2016 / 22:31
1
answer

Error listing items using JSON and PHP

I am inserting items into a list through a SESSION in PHP, these items will be read on another page using JSON, but it is giving error and I am not able to solve. session_start(); if(isset($_POST['Cadastrar'])){ $Nome = $_POST['Nom...
asked by 30.09.2016 / 00:42
1
answer

Problems with Json Encode of PHP?

Something strange is occurring at the output of my function. When using the var_dump only on the variable it returns key and value normally. Piece of code: public function buildGender() { $unknow_name = array(); foreach ( $this->au...
asked by 21.09.2016 / 15:15
1
answer

Array that is becoming object [closed]

When using the json decode function in a json, I'm having a problem. When the numbering is perfectly in order (0,1,2,3 ...) it is classified as arra: [2016-08-01] => Array ( [0] => 07:00:00 [1] => 07:20:00...
asked by 20.07.2016 / 19:31
1
answer

AJAX request for WCF with POST

How to make an AJAX request for a WCF service using POST? I'm getting several errors with OPTIONS and POST methods that come in the same request. Here is my code: Contract [OperationContract] //[WebInvoke(Method = "GET", BodyS...
asked by 03.12.2016 / 18:55