Questions tagged as 'json'

1
answer

Get JSON in Javascript (via URI or PHP)?

At this point I find myself working on a project, and I need to call a webservice that should resume a json, later it will be interpreted and fill a dropdown list. In fact, part of the code I need for this work, I already found it, in an article...
asked by 30.03.2018 / 00:33
0
answers

JSON table and SQL Server via PHP

I need a simple filter of values of the column received by JSON and only show the lines that contain this value, json is generated by a php that does a query in SQL. $(document).ready(function () { $('#retrieve-resources').click(functi...
asked by 01.02.2018 / 19:23
0
answers

Create JSON in a txt file

How do I make a .txt file into json? $linhas = fopen ("sections.txt", "r"); //percorre while (!feof ($linhas)){ $ponteiro = fgets($linhas, 1096); $valores = preg_spl...
asked by 01.02.2018 / 15:08
0
answers

Zoom in on the map according to the value coming from a selectbox

I'd like some help to do what's in the title. I'll explain: I have 3 chained selects, where one depends on the other and when choosing the last, for example, I choose option 74. This value 74 is equivalent to some area of the map, so I would...
asked by 02.02.2018 / 15:15
0
answers

Problem with accentuation when generating epub with gitbook

I'm having trouble generating epub using gitbook . I installed the gitbook-cli and nodejs, then set the book.json file as follows: { "title": "Distribuição Debian", "description": "...", "author": "Fábio", "language": "pt" }...
asked by 29.01.2018 / 18:06
1
answer

How to print a specific value of a JSON in PHP

I have the following JSON file and would like to print only the value of the 'name' field, which is inside 'contact'. I'm using PHP language. C:\wamp64\www\macmind\client-search.php:31: array (size=1) 'retorno' => array (size=3)...
asked by 29.01.2018 / 17:00
1
answer

Get the latest json data in php

Galera follows the code below that lists all. I need only the last given latitude and longitude $conteudo = json_decode(file_get_contents('https://api.findmespot.com/spot-main-web/consumer/rest-api/2.0/public/feed/0ozWRQqxiMnv5bqJzSUIMyU...
asked by 03.02.2018 / 20:59
1
answer

Make a downloadable file available in an API that returns JSON

Hello, I'm developing an API in Java. It is basically a java servlet that returns content in json (application / json). With a tomcat server. One of the answer fields is supposed to be a link to downloading a .txt file. I do not know how....
asked by 06.02.2018 / 18:03
1
answer

Php Json Finds Error

I'm trying to solve a problem whenever PHP is returning the else's "wrong administrator password." But the fact is that the password is correct ... Well I've tried everything so far. <?php $email = $_POST['email']; $tempo = $_PO...
asked by 31.01.2018 / 16:51
1
answer

Problem getting Json in AJAX

I'm trying to retrieve the data from my ajax request in json, they arrive correctly, but at the time I'm going to use them it only returns "undefined". $("#selecionada").on("submit",function(){ var id_licaoselecionada = $("#prox").val();...
asked by 20.01.2018 / 17:30