Questions tagged as 'json'

2
answers

Get name of the properties of a Json

How do I get the properties names of a Json using the Gson library? Example input: { "Ficha":[ { "nome":"nome", "sobrenome":"sobrenome", "idade":"idade", "endereco":"endereco", "empr...
asked by 01.02.2016 / 17:39
1
answer

Delphi: idHTTP.Post HTTP / 1.1 error 401

I am trying to access idHTTP from Delphi on a json server without success. I've tried all the alternatives and I always have the same error: "HTTP / 1.1 401 Unauthorized". Json format submitted for testing:    {"http": {"method": "POST", "...
asked by 28.01.2016 / 15:04
1
answer

volley.ParseError - java.lang.String can not be converted

Hello, I'm sending POST to a PHP file using the Volley library. It all happens well until the application tries to show the response to the user. In the PHP file I use the echo 'user_created'; command. The application has the foll...
asked by 04.01.2016 / 07:40
1
answer

JArray add values

How to add a set of JArray values to an existing json. void adicionar(string name, string gamedir, string, lastVersionid, string javaArgs) { /* adiciona ao json existente... */ } Existing json code ... { "profiles": { "nathan130...
asked by 10.12.2015 / 23:32
1
answer

Include variable in json result [closed]

if($_GET['operacao'] == 'banners'){ header('Content-Type: application/json; charset=utf-8'); $rs = $mysqli->query("SELECT foto AS image FROM banners"); $registros = mysqli_num_rows($rs); $arr = array(); $url = "http://www...
asked by 11.12.2015 / 18:20
1
answer

Change values of a div

I have a combo when event occurs onchange it performs a query on the database with the selected value and inserts into a div values, the problem is that when I apply $('.minhaDiv').html(resultado) it returns me only the last...
asked by 14.12.2015 / 17:25
1
answer

String returning empty

I'm trying to get me to enter the .zip file, select a single file named mcmod.info and save it to a MemoryStream temp. I followed it as this link in StackOverflow, but when I read var ms = new MemoryStream() using a...
asked by 03.02.2016 / 14:58
2
answers

Remove blank fields from an array

for(var j =0; j<data.length; j++){ var valorEmBranco = 0; for(var i =0; i<data[j].length; i++){ var porcentagem = 0; var valorPorColuna = data[j][i].valor; //alert(valorPorColuna);...
asked by 01.02.2016 / 19:47
1
answer

Intel XDK $ .getJSON does not return php value

I am doing a query in mySQL using $.getJSON , but I am not able to return the value. test page: <!doctype html> <html> <head> <meta charset="utf-8"> <title></title> <script src="http://code.jqu...
asked by 17.12.2015 / 21:54
1
answer

How to insert information into a Json object?

My problem is similar to this question: Question Stackoverflow But in this case the Json object is used to populate the table. Controller public ActionResult GetDadosItensVenda(int? Codigo) { try {...
asked by 06.12.2015 / 19:31