Questions tagged as 'json'

0
answers

JQ - Read multiple arrays with bash

Edit: I was looking for other methods to treat Json and I ended up with [x["_source"]["'$1'"] for x in obj["hits"]["hits"]]: - I was curious and I was testing ... It worked beauty adding jq '.files['$X'].projectID' Good. I'm dev...
asked by 20.08.2018 / 22:52
1
answer

Go through JSON to construct waterfall graph D3

I need to construct a graph in waterfall and I'm having trouble scrolling through the JSON to construct this graph. data = { "key": "Margem bruta", "total": 30000, "value": [ { "name": "Gastos com pessoal", "value": -3700 },...
asked by 21.08.2018 / 13:17
1
answer

Get external json data, list, and save in webstorage

I'm trying to get the data via json, but I want to save it in the browser, but I can not if someone can help me follow the code <!DOCTYPE html> <html lang="pt-br"> <head> <meta charset="utf-8"> <met...
asked by 09.08.2018 / 01:05
1
answer

Warning: Illegal string offset, array_column, and array_search

I have a script in php, which looks for, and compares some JSON returns in 5 different URLs, filters and replaces them with their names, it works with some table items, but also returns me the following error:    Warning: Illegal string offse...
asked by 15.08.2018 / 14:34
1
answer

Open base64 PDF

I have an application that generates a PDF in bytes and converts it to ToBase64String and sends it through a JSON so that javascript can open, but in chrome it can not read that file and display the PDF $.post('/Relatori...
asked by 16.08.2018 / 19:04
1
answer

Error formatting Json

I need to generate and expose a Json via web api and the question is this: 1o. - Can not expose the attribute "services":null , according to the JSon generated by me described below? Home 2nd. - How do I generate at the start of Json:...
asked by 17.08.2018 / 01:57
0
answers

Divergent Results When Filtering API Response

Edit: I was able to get him to create a single tab-pane, but now he is not filtering the games according to the league as you can see in the image below, he is printing everyone! I edited the code ... IhaveawebsiteinWordpressandI'mconsumin...
asked by 01.08.2018 / 14:05
1
answer

Doubt printing more than one item in return Web service JSON

I have a website in Wordpress and I'm consuming a Web Service, I created a function to filter the championships based on some information, If all are true, it returns the name of the respective championship, the teams, their games and results, u...
asked by 01.08.2018 / 00:02
1
answer

JSON returning value undefined

Well, I have a code where I get the JSON data, but the display is undefined. function usuario_search(id){ $.ajax({ type:"GET", url: "/usuarios/search/"+id, success: function(data) { console.log(data); var json = JSON.parse(dat...
asked by 31.07.2018 / 13:17
0
answers

Ajax request with JSON-type parameter using Jquery 1.8.2

I'm trying to make an ajax request that sends a list of objects, but it seems that in this version of Jquery 1.8.2 (I can not update because the system is legacy and has many features using these versions), it seems that it does not recognize th...
asked by 13.08.2018 / 15:20