Questions tagged as 'json'

1
answer

Delete a table when changing input data

I have the following table: which is generated immediately, but when making a change of dates with $("#p-fechaIni").change(function() { tablaP($("#p-fechaIni").val(), $("#p-fechaFin").val()); }); Send the data and...
asked by 21.08.2017 / 18:34
2
answers

Get specific result using json_decode ()

It turns out that I have a php code to extract the url from the images of a tumblr blogs that is this: $URL = "http://api.tumblr.com/v2/blog/luxury-boobs.tumblr.com/posts/?api_key=fuiKNFp9vQFvjLNvx4sUwti4Yb5yGutBN4Xh10LXZhhRKjWlV4&note...
asked by 26.09.2017 / 20:52
1
answer

Repeat Data in an Arrangement

I am using PHP and I have an arrangement that shows me the following: 0:{clave: "GTO", id: "45", nombre: "Guanajuato"} 1:{clave: "MEX", id: "76", nombre: "México"} 2:{clave: "EUA", id: "54", nombre: "Estados Unidos"} What I want to d...
asked by 16.08.2017 / 17:17
2
answers

Convert to int string of an array

I have the following code: $dat[] = ["2016-11-09", 1]; $dat[] = ["2016-11-09", 1]; $dat[] = ["2016-11-15", 1]; $dat[] = ["2016-11-16", 1]; $dat[] = ["2016-11-16", 1]; $dat[] = ["2016-11-17", 2]; $fechaAnt=""; $repetidos=1; //agregado f...
asked by 11.08.2017 / 23:01
2
answers

Error: $ .getJson is not a function at HTMLDocument

I have a .json file { "post 1"[ { "folio":"1", "img":"imagen", "titulo":"bla bla bla", "descripcion":"nananana" } ] "post 2"[...
asked by 19.06.2017 / 18:38
2
answers

Problems printing a jx ajax

Now I have a Jquery function $("#btn").click(function() { $.ajax({ type:"POST", url:"cUrl.php", datatype:"JSON", success: function(data){ $('#contenedor').html("<di...
asked by 19.06.2017 / 23:41
1
answer

Repeated values in JSON

I'm loading some values in JSON and I would like to control and delete the duplicates: public void loadEventos(){ SharedPreferences prefs = getSharedPreferences(getString(R.string.gamedata), Context.MODE_PRIVATE); String data=prefs...
asked by 29.06.2017 / 10:01
3
answers

Get values from a JSON in node.js

I'm having problems with this code in Node.js. I need to get the information found in "Contents" of the JSON but it gives me an error that says: "e.Contents.forEach is not a function" I guess it's a logical problem but I honestly do not know n...
asked by 06.09.2018 / 18:11
1
answer

JSON equivalence

Good, what would a JSON like this be like but decoded from PHP? JSON { "lists": [ { "title": "do", "defaultStyle": "list-danger", "items": [ { "title": "beforeItemDelete is never calle...
asked by 09.05.2017 / 13:18
1
answer

The resource is not found in c #

I have the following program that shows JSON data. Code of Controller : using MVCCuartoDia2.Models; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace MVCCuartoDia2.Co...
asked by 04.05.2017 / 05:02