Questions tagged as 'json'

1
answer

Obtain if there is data in a nested object inside a json

I run into a problem, I have a list of items in a json. and before filling out a list, I want to check if there is a PROMOS sector in the json. Try this way but it only brings me the first 5 articles and nothing from the PROMOS sector my java...
asked by 19.10.2018 / 15:55
1
answer

JsonConvert.DeserializeObject returns some values in NULL

I'm working with a file in JSON that comes with a specific structure, which at the time of doing the deserialization process returns some of the values in null. The source file that I am processing is the following: { "t":"i", "v": [ {...
asked by 22.08.2018 / 19:10
2
answers

Convert URL to Object (JavaScript)

I am working on a personal project (using node.js) where I need to get the route of the GET request, for example "/path/to/content" , transform it into an Object and make it look like this: { "path": { "to": { "content":[...
asked by 27.12.2018 / 17:49
1
answer

json php query with duplicate results

The result of my php query is shown as follows: the data is repeated in each query. <?php header('Content-type: text/html; charset=UTF-8'); include('functions.php'); $sql = "SELECT * FRO...
asked by 25.09.2018 / 18:54
1
answer

How to walk a Json with Array

Good I am having problems to travel a json with array or that I think, I leave you the code json: { "username": "Pepiko", "platform": "pc", "stats": { "kills_solo": 1, "placetop1_solo": 0, "placetop10_solo"...
asked by 29.09.2018 / 21:24
1
answer

Error saving json data in MySQL

I'm trying to store this data JSON : { "ticker": { "base": "ETH", "target": "USD", "price": "689.18009232", "volume": "234831.85174911", "change": "1.48138601" }, "timestamp": 1525308422,...
asked by 03.05.2018 / 17:18
2
answers

Consuming a service from the web api in mvc?

I am trying to consume web service api via httpwebrequest and razor to show it in mvc view. in the mvc controller I have this code in which I want to consume the api using EntradaElectronicaAlmacenApi.Services; using System.IO; using System.Ne...
asked by 27.03.2018 / 03:43
1
answer

How to make a correct if within a foreach?

I have an input of type text there is entered an id to verify if you existed or not. list.forEach(function(a) { if (b == a["id"]) { g["setstatus"](true, a["id"], f); return c(true) alert("Correcto!"); } g["s...
asked by 22.05.2017 / 23:52
3
answers

How to consult an arrangement using one of its fields and display it in html [closed]

I have the following ARRAY var array = [ {"productoId":"4","categoriaId":null,"marcaId":"2"}, {"productoId":"87","categoriaId":null,"marcaId":"2"}, {"productoId":"175","categoriaId":null,"marcaId":"20"} ] This is received by a...
asked by 10.05.2017 / 17:03
1
answer

Navigating a JSON

I want to take the information of this json ( link ) and show them in an HTML and show me only the data of the team that it has as clantag TRCIO, until now I have managed to show me the data, but it shows me those of all the equipment. How could...
asked by 05.10.2016 / 15:38