Questions tagged as 'json'

0
answers

Send image via API to AMAZON AWS

I need to submit an image via jquery or javascript to an Amazon hosted API. I can send it by Postman, it shows me this code for sending: var form = new FormData(); form.append("file", "http://www.site.com.br/2017-09-06-11-40-43.jpg"); var set...
asked by 06.09.2017 / 17:30
1
answer

Convert format like xml to json with javascript

I am using the following code to read a file similar to an XML, but I need this file to be converted to a JSON, can anyone give me this help? Here is the code for my index.html <html> <head> <script> var op...
asked by 21.08.2017 / 21:21
1
answer

Sending an Array by POST with JSON for PHP

Next, I need to send an array by POST with JSON. I have read about JSON.stringify and in my PHP code I use json_decode, but in practice I am not able to apply. I'll put the code here and change it more or less with the idea that I hope, even wro...
asked by 13.08.2017 / 23:49
1
answer

How to pass a class as a parameter in another class and return a variable that is inside a Thread

I work with Delphi and decided to learn how to make java applications, and I came across a problem. I have this class public class Dados { public void getJson(final String url) { new Thread(new Runnable() { @Over...
asked by 14.08.2017 / 14:44
0
answers

Typeahead with accentuation

I've created a small application that uses typeahead to do the searches. I have registered people with names with accentuation and to search them I need to write the absolute name (with accent). I need someone to be searched for, for example, th...
asked by 11.08.2017 / 15:51
1
answer

Upload Json file with Ajax

How do I load a Json file into my html. The console does not show any errors, but no field is populated with the data from the Json file.               <h3 class="center">Tela de alunos</h3> <div class="container"> <...
asked by 09.08.2017 / 22:12
0
answers

Does not access the OnResponse () method retrofit android

I am making a call from a post method that returns me an id generated through retrofit 2, however, in return, it never accesses the onResponse method, I already tried to use other objects and formats, but none worked. Below the service return:...
asked by 04.08.2017 / 19:52
1
answer

String JSON - Two decimal places

I'm reading a JSON object, and I get the data in TextView . However, the value of String Preco when the price has a zero in the second decimal place, it does not print in TextView . For example: 9.20 displays 9.2...
asked by 22.08.2017 / 21:24
0
answers

Back-End MVC (Laravel) Real Time with Json

I did a Laravel course, and I did my application in MVC, however, there are balloons, which I load in JSON, click the "login" button, open the login balloon, there are CRUD functions. can I do the MVC system in this way? The balloons are in the...
asked by 26.08.2017 / 17:22
1
answer

Return value in Json with angle 2 [closed]

I'm working on a project where I need to return a database value that is fetched via REST in json format. The front-end of the project is angular 2. I have a table of workers and need that when the user clicks the edit button, it already brin...
asked by 25.07.2017 / 20:29