Questions tagged as 'json'

2
answers

Use of time lapses (TimeSpan) in JavaScript

I have an ODATA node, which automatically throws data in Json format. One of the properties in this object contains a time lapse ISO 8601 , because it is generated using < strong> TimeSpan (from .Net) For example, a lapse of 7 hou...
asked by 04.03.2016 / 00:40
1
answer

Iterar json with Angular2

I am trying to iterate the json resulting from a call but I can not find a way. The json I read it in the following way: return this.http.get('http://localhost:4200/traerDatos.php').map(res => res.json()).subscribe(result =&...
asked by 01.06.2017 / 11:07
7
answers

Error generating field for JSON from PHP

I'm trying to pass a news list by JSON from PHP <?php ... $sql = $conn->prepare('SELECT * FROM noticias'); $sql->execute(); while($row = $sql->fetch()) { $data['titulo'] .= " ".$row->titulo." "; } echo json_encode($data)...
asked by 12.04.2018 / 17:18
2
answers

populate array with string received post method

I have a script in javascript, that when executing it sends me this information by post: array(1) { ["data"]=> string(36) "[name:jorge,apellido:nieves,edad:31]"} but I do not know how to capture it and populate an array: $info=[]; fo...
asked by 30.10.2017 / 22:44
2
answers

Create a JSON Object or a JSON Array?

It turns out that I have three tables, tablaA , tablaB , tablaC and I want to generate a JSON with it to be able to send it to another different base, but I want to separate the actions because in the tables there are insert a...
asked by 08.09.2018 / 08:06
1
answer

Tutorial to send ArrayListString as JSON in Adroid with AsynTask [closed]

I'm looking for a tutorial or example of how to pass an ArrayList to JSON and send it through an AsynTask to a PHP server, but I do not see anything clear. Do you have any link to a good tutorial or some code already chopped around?     
asked by 27.09.2018 / 11:24
1
answer

Pass Json Object to List [duplicate]

I have this method that is from a list of products public String ProductosFacturas() { float montoTotalf = 0; int productsize = ctPagar.getProductArraylistsize(onGo); //Crear Array de productos del carrito para pasarlos al se...
asked by 08.10.2018 / 18:11
2
answers

http request in c #

Hi, I'm trying to make an application in C # related to a game. The problem I have is the following is that when I do the following always shows me the exception: try { string response = await _client.GetStringAsync(string.Format(Config.US...
asked by 25.10.2016 / 00:27
1
answer

Search for data in a JSON

I would like to know how to search data within a JSON through PHP. I have a JSON code that contains a huge list of cities with their id codes and I want the user to ask a city and the program written in PHP look for the city within the json, see...
asked by 24.07.2018 / 17:59
1
answer

Update a table with ajax

How can I update a table using ajax , I have the following table: $("#venta").bootstrapTable({ url:'<?= base_url(); ?>index.php/ejemlo/usuarios/datos' columns:[ {field: 'reStatus'},...
asked by 19.08.2017 / 17:03