Questions tagged as 'json'

2
answers

How can I upload a file to my server using PHP, AJAX, JAVASCRIPT?

I have problems uploading a file to my server, I CAN NOT read the $ _FILES ['file'] ['name'] after having gone through AJAX, I use the following code: HTML index.php <html> <head> <meta charset="UTF-8"> <scrip...
asked by 26.10.2018 / 07:45
1
answer

How can I send an image (or more) from C # to my REST API and save it in mysql?

The following is my code and it works to send data from C # to my REST API and this information is stored correctly in the database: so I send the information from C #: using (var WC = new WebClient()) { WC.Headers...
asked by 31.10.2018 / 21:23
1
answer

Add rows to the TBody of an HTML table with JavaScript

The problem I want to solve is to be able to add rows to a table with JavaScript, after having selected an Input Radio, the table should change. The JavaScript code: <script type="text/javascript"> $(document).ready(function() { var v...
asked by 19.10.2018 / 17:54
3
answers

Error showing json data

I have this code: <script type="text/javascript"> var direcciones = []; function getDirecciones() { $.ajax({ url: "getDireccionesJSON.php", success: function (data) { if (data != 0) {...
asked by 09.11.2018 / 20:05
3
answers

JavaScript: How can I add the numerical elements inside a json?

Good morning everyone, my query is the following ... If I have a JSON object in javascript, for example: json = [{"Nombre":"Sutano","Edad":19},{"Nombre":"Fulano","Edad":20},{"Nombre":"Mengano","Edad":21}]; And I want to add only the numeric...
asked by 09.11.2018 / 23:03
3
answers

Can you deserialize and map a Json without model in C #?

What happens is that I have a requirement, I have a Json but I need to capture the value, but I have to do it without using a Model, I have seen examples but they all manage models. Is it possible to deserialize without a model? At the mom...
asked by 30.10.2018 / 16:31
1
answer

Get value of a Json in node.js [closed]

I find myself stuck and I hope you can help me. I have an API where I make my requests (Post, Get, Delete, etc.) In this function I do a post sending a json, the answer is another json, as seen below. With that all goes well, h...
asked by 01.10.2018 / 21:18
4
answers

Access the data of this Json with PHP

[{ "GameId": 53614, "Season": 2018, "SeasonType": 1, "Day": "2018-09-28T00:00:00", "DateTime": "2018-09-28T14:10:00", "Status": "InProgress", "AwayTeamId": 16, "HomeTeamId": 20, "AwayTeamName": "CHW", "HomeTeamName": "MIN...
asked by 29.09.2018 / 00:01
1
answer

Obtain multiple objects in PHP - JSON with Retrofit2

I'm trying to make a simple project of a gallery for android and I have a problem when it comes to getting the images from the server and showing them in my application since it only returns the first registered image and what I'm looking for is...
asked by 06.10.2018 / 09:17
1
answer

pass a JsonArray to an ArryList

I have the following code: import java.io.BufferedReader; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.URL; import java.util.Iterator; import org.json.JSONArray; import org.json.JSONObject; public class...
asked by 06.10.2018 / 00:40