Questions tagged as 'json'

1
answer

Sort a JSON array

Previously, in this link I asked for help to make a kind of top of users sorted by their score, using a JSON file defined as let points = JSON.parse(fs.readFileSync('./points.json', 'utf8')); With the following format: { "242043489611...
asked by 22.12.2016 / 12:14
2
answers

Make use of json_encode for PHP image

How about, I want to use json_encode to make a json of an image obtained from the database, this I have but it does not work just send me the blank page and it does not show anything of json : <?php define('HOST','host.com');...
asked by 09.05.2016 / 21:01
2
answers

How to convert string or javascript string to object json? [duplicate]

Through a request to a web service I get this result: It is a string or string of javascript and I want to convert that result to a json object. I am trying it in the following way, but I still do the same: var obj = JSON.parse(J...
asked by 12.07.2016 / 16:32
2
answers

Send JSON php

I am having problems sending a JSON from a PHP and MySQL webService, I leave the code of the query and the fetch assoc, the query has already been checked and it is correct, in phpMyAdmin it makes me perfect, the problem is that when I receive t...
asked by 21.11.2018 / 19:33
1
answer

Convert a JOIN to Laravel

I am in a small problem, I managed to make a query in MySQL to obtain data from three different tables, with these data I want to print them on my WEB page, I have researched and it turns out that I must use JSON and Ajax to be able to store my...
asked by 06.11.2018 / 23:37
2
answers

Get the labels of a JSON

I'm doing a API that receives a JSON and I need to get which tags are inside that JSON . This is an example of JSON : [{ "Notification": [{ "Channel": 4, "Type": 1, "Means": [{ "Number": 8888888...
asked by 11.09.2018 / 23:19
2
answers

How to serialize data from a datagrid to JSON with C #?

I'm trying to get all the rows of a datagrid in c # in JSON format. With the following code I already get the correct JSON format but I do not get all the data from the datagrid. Just send me the data from the last row of the datagrid, taking...
asked by 08.11.2018 / 19:29
1
answer

Sending data to an Api

I have two methods of type Post But what I do not know is how to differentiate one method from the other in the Post type request. [HttpPost] public ExpedienteDto Post(ExpedienteDto dto) { return ProcesosService.CrearExpedient...
asked by 25.09.2018 / 16:43
1
answer

Variable of a JSON undefined

good to all, again, JSON em is something Troll because it is easy to deal with the data in this way but I do not understand in this case the reason why it does not work, I have this JavaScript code (not yet complete) function ver_bookmark(id_s...
asked by 31.08.2018 / 11:05
1
answer

How to check checkbox of a table already generated dynamically from a JSON, jquery?

In this way I generate the list dynamically: var cupones_bienvenida = $('.cupones_bienvenida'); var tipoCupon =''; $.each(response.data, function (i) { if (response.d...
asked by 26.09.2018 / 21:30