Questions tagged as 'json'

1
answer

Get a JSON PHP Via Jquery

I have 3 pages, 1-Index, where I pass some settings; 2- game_data.php, where a query is made and returns a json with the data; 3- juego.php, The page where the json data is displayed is displayed. My difficulty now is, get this data from Json...
asked by 28.01.2017 / 01:45
1
answer

PHP Array for Json [duplicate]

I have this query, I need to display each column in an HTML div. Hi, I need to return the data in a PHP array, pass this php array to an array in JS to be able to manipulate and display them in their respective divs, the query is working perfe...
asked by 25.01.2017 / 18:24
1
answer

Send form parameter to the controller via ajax

I have an Index with a form, I need to fill out this form and when I click the Filter button, call the controller using ajax. Index.cshtml @using (Html.BeginForm("ResultadoPesquisa", "RelatorioDesempenhoData", FormMethod.Post)) { @Ht...
asked by 03.03.2017 / 19:05
1
answer

Javascript does not receive json response from Laravel

I'm trying to get Javascript to get the data sent by the server and play on the alert. But it always comes undefined. I have already looked at many topics on the internet and found nothing wrong with the code. In theory it was meant to work. Can...
asked by 02.03.2017 / 17:45
1
answer

Function in MySQl PDO for json [closed]

I'm taking the first steps in MySQL PDO and I have 2 questions in my code. The first is related to the efficiency of the functions. The second doubt is related to the return of results from a database to insert into json_enc...
asked by 23.01.2017 / 05:12
1
answer

Angular js reload

Person, I noticed that whenever I reload the page, while page is being loaded, it shows all the keys {{}} of the scopes of my project, is it normal? the page containing the scopes coming from a get json is in php ....     
asked by 05.01.2017 / 20:45
1
answer

Object in java contains a JSON, I want to get the JSON information and popular my object attributes [closed]

It is the following, I have the GPS object, it is with a json as follows the image, I want to get the data of the field code and field name and place them within the attributes of the GPS object. FOLLOW IMAGE How can I do this? I tried...
asked by 09.01.2017 / 04:52
1
answer

Error in return of get from delphi to php

I submit the following get in php http://site.com.br/Autenticacao/index.php?conteudo={"Login":"[email protected]","Senha":"123","Posicao":{"Latitude":"-18.8693459","Longitude":"-41.955664"}} And I get http://site.com.br/Autenticacao/index.p...
asked by 08.01.2017 / 19:53
1
answer

Convert String to Json in Java EE

I'm getting a String in a .jsp and would like to convert it to JSON, so I can access the values of it. I've looked for everything, but I could not solve my problem, because I can not access the value of the field. Please, if you can help me, I'l...
asked by 05.02.2017 / 17:02
1
answer

Request without @XmlRootElement

I'm doing a simple user registration with Java and AngularJS. My request in javascript looks like this: $http({ url: "rest/user/register", method: "POST", data: $scope.newUser }); In Java, I have a method that gets the data i...
asked by 21.12.2016 / 16:15