Questions tagged as 'json'

0
answers

JSON request comes full page

I have problems with requisição JSON , it is returning html of the entire page and my request is JSON . I am using framework Laravel in versão 5.2 I make my request like this: $curl = curl_init...
asked by 11.10.2016 / 15:51
1
answer

Convert JSON to object with GSON

I have a webservice ready, which returns a JSON of an object, great, working: Here is the returned JSON: {"Opa":{"nome":"Teste1234"}} This JSOn is of the following class: public class Opa { public String nome = "Basico"; } GSON simply...
asked by 16.08.2016 / 17:00
0
answers

Search in json nested rails files

I have some files that are: services, organs, units. The organs have services and have units. I, in the jsons I have, can return to the part where, for example: localhost / api / organs / .json. That there it returns the services and the units t...
asked by 12.09.2016 / 20:39
1
answer

Ajax returning HTML next to Json

Hello, I'm trying to fill in input data with the result of a search in the database using what I've typed before as a filter. ex: User type customer code and when you focus the input, all fields (name, phone, address) are already filled in...
asked by 06.09.2016 / 17:00
0
answers

Error displaying Json in PHP [closed]

I have the following code. <?php $email = $_POST['email']; $nome = $_POST['nome']; //Não mexer// require_once "vendor/autoload.php"; use Intercom\IntercomClient; $client = new IntercomClient('App_ID', 'App_Key'); //Não mexer...
asked by 21.08.2016 / 18:10
1
answer

Return 2 PDO queries in JSON

I need to return two queries. $id = $_POST['id']; $id = end(explode('editarnovoservico', $id)); $searchid = $pdo->query('SELECT * FROM cad_servicos WHERE id = '.$id); $searchid = $searchid->fetchAll(PDO::FETCH_ASSOC); $searchtiposervico...
asked by 30.07.2016 / 02:09
1
answer

Socket response with problems on Android NDK

I'm trying to implement this library, parson , in C, but when I try to manipulate the data obtained via connection socket (SO link) , I get a null , which does not happen when I manually put json in C. The problem is in the...
asked by 20.08.2016 / 23:22
1
answer

Request Post in webservice with swift

I'm now starting to use alamofire, I was able to quietly make requests .get however I crashed the post request. I created a user class that has name, email and password, however I can not post a user stay object let usuario = Usuario()...
asked by 02.08.2016 / 23:49
0
answers

Input and Json problems with quotation marks

Hello. I'm developing a web application using SpringFrontEnd and a Restful API on the backend. The front is in javascript getting API data. Here's a problem .... When entering a field in some Input or Textarea It breaks the code and returns 4...
asked by 22.06.2016 / 22:31
0
answers

Use json with PHP and MySql

Well, I'm trying to use Json to fill out a form with some data, the problem is that I have tried several forms and it still does not work and I already have it here is a big mess. / p> In First Needed Jquery, what is already added. Second...
asked by 23.06.2016 / 15:06