Questions tagged as 'json'

0
answers

Problem when uploading images from android to my server localhost

I am programming to upload my images to my server in a folder but it does not upload and I get the following error:    org.json.JSONException: Value [] of type org.json.JSONArray can not be converted to JSONObject The times I tried them (...
asked by 24.10.2018 / 14:57
1
answer

Return Data and View in JsonResult

I put them in context, I'm working with C # MVC architecture, when making POST of a Create, defined as follows: [HttpPost] public JsonResult Create(List<Modelo> registros) {... I must return a JsonResult() in which I must re...
asked by 16.10.2018 / 21:27
0
answers

Convert SMIL file to JSON

In this program we manage a .smil file and we want to convert it to Json during its execution. The program works as it should in all methods but it shows the same output as when I was printing the .smil file on the terminal, so I think that my t...
asked by 16.10.2018 / 13:51
0
answers

ARRANGEMENT JSON TO ARRANGEMENT OF OBJECTS IN JAVA (ANDROID STUDIO)

I am currently passing an object from PHP through a JSON, consisting of message, result and an object with 2 attributes: id and region name. PHP function that performs select and returns an object to the calling function: public func...
asked by 12.10.2018 / 02:22
1
answer

Send HTML by JSON with PHP

I have this HTML that I generate with the function of php selectHorarios () <option>13:15</option> <option>13:30</option> <option>13:45</option> <option>14:00</option> That I send it with thi...
asked by 12.10.2018 / 10:25
1
answer

notifyDataSetChanged () does not refresh the ListView items

Context: I am trying to consume an API, from where I recover data from clients and with them I intend to create a ListView. It should be noted that I have already verified that the data is received. Customer class: public class Cliente {...
asked by 13.10.2018 / 07:07
1
answer

Ask AJAX to BD when inserting data in INPUT - C #

I searched for information on the internet but I got a little confused, I have an input tag. <div class="form-group"> <label>Stock Number</label><br /> <input type="text" class="form-control" id="StockNumb...
asked by 11.10.2018 / 20:27
1
answer

Problem when wanting to read JSON made PHP from Java

I'm trying to get a JSON from PHP, which returns the result of a query (SELECT) from a database. I am using GSON, to convert the obtained JSON to an object in Java. My problem is that it does not let me create the objects and returns an Ex...
asked by 19.10.2018 / 02:41
0
answers

Add items to json

How can I add an item to this json? this way I can receive it in the details activity to complete a url to access it. [ { "item1": "Finalizado", "item2": "F" }] And my intention is to add "item3": "$ data" aft...
asked by 07.10.2018 / 13:25
1
answer

Convert result Json objects in List Json ?, using php and mysql

PHP code to show results of a query to MySQL (returns json object) if ($result = $mysqli->query("SELECT ID,NOMBRE,NICK,PASSWORD,EMAIL FROM ud_Usuario")) { // check for empty result if (mysqli_num_rows($result) > 0) {...
asked by 16.10.2018 / 17:49