Questions tagged as 'json'

0
answers

When my Json return is an array how can I get this array?

try{ URL urlConection = new URL(caminho); conn = (HttpURLConnection) urlConection.openConnection(); conn.setDoOutput(true); conn.setRequestMethod("POST");...
asked by 31.03.2017 / 11:54
1
answer

App webview session or cookie

Hello, guys! I am creating an (hybrid) app for android, from HTML5, CSS and JAVASCRIPT, such as WebView. I will use API through PHP using MYSQL, exchanging information with JSON. My question is next, where should I save the token to make a...
asked by 12.03.2017 / 04:56
0
answers

Json returning wrong data - Android

I have an activity that displays the data of a json coming from a url. The data is displayed, but I need to change the contents of this json from time to time (the url does not change). The problem is when I change the data in json it does not u...
asked by 18.03.2017 / 18:27
1
answer

Why does not this function work in Mobile Browser?

I'm using the code below to search data in a json, and works perfectly in Chrome and Firefox, but in mobile browser it does not work, and simply does not return anything: function searchTitles(e){ var val = decodeURI(e); var data = Ob...
asked by 06.02.2017 / 12:12
3
answers

send json data from ajax to php

JS file: var jsonsave = []; var dado = new Object(); dado.nome= "João"; dado.cpf = "000"; dado.teste = "teste"; var jason = JSON.stringify(dado); jsonsave.push(jason); $.ajax({ type: "POST", dataType: "JSON",...
asked by 22.01.2017 / 21:17
0
answers

Help to Communicate between a Server and an Android Application [closed]

I'm developing an Android Application Based on: Add / Send DATA to the Server Collect / Receive Server DATE Send and transmit Location information (Geolocation) Profiles Sharing I've been suggested to use JSON (Based Object) a...
asked by 11.01.2017 / 16:33
2
answers

WEB Service in Java

I'm creating a Web Service, but I'm wondering how to get JSON in it as a parameter. @Path("WebService/{json}") @POST @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) public String POST (@PathParam("json") String jso...
asked by 31.12.2016 / 19:06
0
answers

Ajax does not receive data in json [closed]

Personal I've created a function with Ajax that should return the posts that are in the database. Ajax requests a PHP script that it responds with a JSON but I get the following message in the browser console    Synchronous XMLHttpRequest sho...
asked by 28.12.2016 / 22:33
0
answers

Skip field when selecting ajax result

I have a div that has an "input" that returns the query results via ajax. I need that when selecting one of the results of the user, automatically jump to the next field or give an enter also jump to the next field. But these divs are inside a "...
asked by 07.01.2017 / 17:49
2
answers

Formatting JSON in EJS

I have a problem with using nodejs and express, I have never used this language and I do not have much knowledge of it so I will try to be as specific as possible here. 1 I have a webservice rest that returns me purchase orders with several i...
asked by 06.01.2017 / 14:47