Questions tagged as 'json'

1
answer

Xamarin C # does not deserialize json

I am trying to convert some parameters that I receive in a json in whole, but for some strange reason I do not get it, can anyone know that I am failing ??? switch (response.StatusCod) { case (System.Net.HttpStatusCode.OK): res...
asked by 21.02.2018 / 20:57
1
answer

Get data from an array of json objects

Hi, I'm trying to get the data from an array of json objects and save them in a different javascript array For examples I get this JSON through an api rest [ { "temperatura": 2.3, "fecha": "2018-02-05T06:13:01.000Z"...
asked by 07.02.2018 / 02:09
3
answers

I errrely print the json in php

I am trying to bring the data of a bd in mysql, it brings me the last data that has been entered into the bd, but it does not bring all the data <?php include('conexion.php'); $json = array(); $link = conectarse(); $select...
asked by 11.06.2018 / 05:38
1
answer

Accommodate JSON data with PHP

I have some problems to accommodate data obtained from an API, they come in "JSON" format, try to accommodate them using an "array" but I did not succeed. The data that the API throws at me when making a "Get" are the following: { "pag...
asked by 13.06.2018 / 18:24
2
answers

Access JSON response in AJAX

I try to access the values of the response I receive through AJAX but I am not capable. The JSON that receives the function in success I think is fine, but when I access its elements these have value undefined . If I throw in the...
asked by 11.12.2017 / 22:17
2
answers

Execute function passed by json

I have this ajax function: function GuardarJson(url,que,id,cod,param,respuesta) { var Daticos = {id: id ,codigo: cod, respu: respuesta }; $.ajax({ url: "Paginas/"+url+"?que="+param, data: Daticos, type: "post",...
asked by 25.12.2017 / 23:14
1
answer

how to put a JSON in a Spinner?

I bring my json from a php and I pass it as string to my activity class via onPostExecute from AsyncTask : public String doInBackground(String... params) { String type = params[0]; String registro_url = "http://...
asked by 17.12.2017 / 22:48
2
answers

convert $ .getJSON script to $ .post

I have a problem I am trying to pass a series of $ .getJSON script to $ .post: $(document).ready(function(){ //getdeails será nuestra función para enviar la solicitud ajax var getdetails = function(id){ return $.getJSON( "index...
asked by 30.10.2017 / 19:36
1
answer

Check whether or not the attribute value of a JSON exists?

When checking if the following values exist for the "propertyName" attribute, I want it to show it to me if it does not exist . But the problem is that I get repeated values , as many times as objErrList.length there is. If it finds value, it...
asked by 21.09.2017 / 13:08
1
answer

Divide 2 values taken from the Json with AngularJS

I have another problem that I do not know how to do it. I have a Json with several data and I have to make an average between 2 json data angular.module('playersApp', []).controller("AllPlayerssCtrl", function ($scope) { $scope.players = [...
asked by 22.08.2017 / 01:13