Questions tagged as 'json'

0
answers

Quotation API for GDP and IGM-P

I need to consume quotation data for the following quotas: - GENERAL MARKET PRICE INDEX - IGP-M GDP - Dollar I found some APIs that return the dollar, but PIB and IGP-M did not find any. Does anyone know of any APIs that return these quota...
asked by 26.02.2018 / 18:55
2
answers

PROBLEM WITH AJAX JSON

File IMG_TROCAR.PHP code <?php include_once('config/config.php'); $ligacao = new PDO("mysql:dbname=$baseDado;host=$host", $user, $pass); $id = $_POST['id_user']; $mudarAvatar = $_FILES['img_avatar']; if($mudarAvatar['...
asked by 04.03.2018 / 13:34
1
answer

How to structure multidimensional array with json

Good evening !!! I have a json that returns in this format: {rua: "A01", col: "01D", alt: "A"},{rua: "A01", col: "01D", alt: "B"},{rua: "A01", col: "01D", alt: "C"},{rua: "A01", col: "01D", alt: "D"} But I need you to return in this format:...
asked by 28.02.2018 / 01:46
0
answers

Error creating object of type JSONObject

I'm trying to create a WebService that returns me one or more data from the database, using JSON as a return. @Path("teste") @Produces(MediaType.APPLICATION_JSON) public JSONObject teste() { JSONObject obj = new JSONObject()...
asked by 28.02.2018 / 05:31
3
answers

Convert JSON to EXCEL

I have a ajax query that returns a Json with an array of objects, how can I turn this json into excel? My json example: [ {idcancelamento: "383", idcliente: "2409", emailcancelamento: "1", financeiro: "1", suporte: "1"}, {idcancela...
asked by 23.10.2017 / 19:19
1
answer

JSON return in the desired format from SQL

I'm trying to get the following return in MySQL: { matricula : '123', periodo : [ {id : '012016', titulo: 'Janeiro 2016'}, {id : '022016', titulo: 'Fevereiro 2016'}, {id : '032016', titulo: 'Març...
asked by 24.02.2018 / 01:01
0
answers

About Snippets in VS Code

Hello, I use Visual Studio Code, I am a beginner in programming and wanted a help to mount snippets in VS Code, I wanted to create snippets for the basic C language functions, like printf and scanf, I already searched for exits and did not exist...
asked by 24.02.2018 / 09:34
0
answers

How do I save data in a JSON file using Javascript?

I would like to get the console.log output and save it to a .JSON file and then get a search inside it     
asked by 23.02.2018 / 14:23
0
answers

How do I make a nested list via json with laravel?

I'm trying to make a nested list via json, with laravel, example, the table companies, have several products each company, I want when I click on a particular company, appear the products registered only in that company that I clicked, but not I...
asked by 26.02.2018 / 21:11
1
answer

Function in javascript always returns undefined

I know there are several similar questions, but none of the solutions worked out: ( I have this function that receives data by parameter: function funcao(valor) { var a; $.getJSON(/* aqui retorno de uma WebService*/, function (dados)...
asked by 18.02.2018 / 00:33