Questions tagged as 'json'

1
answer

JSON and multiple lines

I'm building a JSON file where I want to add multiple lines, as shown in the code sampled below: [ { "Numero":"0001", "Textos":[ { "letra":"Meu Jesus maravilhoso és, minha...
asked by 04.10.2016 / 21:52
1
answer

How to pass a JSON Object to a method in webservice?

I'm trying to pass a JSON Object to a method in my controller and I'm not getting it, the problem is that the email field always returns null. How to do this? I'm trying like this. JSON Object {"UsuarioJsonModel": {"email":"meuemail...
asked by 10.11.2016 / 19:07
1
answer

Treat Javascript Postback

Opa, I have a page that runs a SetInterval of seconds in javascript, this page captures the data of the divs and sends via post, being that this data sent is not fixed, sometimes it can be sent 1 or more than one. In sending, I treat this...
asked by 12.08.2016 / 20:01
1
answer

How to print information that is in json format but is printed in a way that gives the user to read?

The application is printing in this json format but I do not want it to print like this. For example I just want you to print "translation": "Hi dear" and only. I'm using eclipse and the java server language, how do you do? I'm using an API b...
asked by 29.06.2016 / 16:57
2
answers

SWIFT - How to feed a TableView with information from an NSArray?

var nomes:NSArray = [] override func viewDidLoad() { super.viewDidLoad() Alamofire.request(.GET, MyUrl,parameters: nil,encoding: .JSON).response { (_, _, data, error) in self.nomes = try! NSJSONSerialization.JSONObjectWit...
asked by 07.08.2016 / 04:00
1
answer

Android: sending json and receiving with php and registering in the bank

I'm having trouble making this communication, being that I'm responsible for the part of php and the part of the android is being made by a friend (that's the code sending something), he said he's sending by POST the most I can not find anything...
asked by 23.09.2016 / 23:21
1
answer

How to put two Google Charts on the same page

I am creating a web application in which it uses two graphics fed by the bank. I use google's api, google charts. However, only the first graphic appears while the other is blank. <html> <head> <script type="text/javas...
asked by 16.06.2016 / 04:35
2
answers

How to execute a code only after finishing another?

I need to run the city search only after finishing loading the states within the select and capturing the ID . I'm getting this ID to send another Ajax that will populate the cities of this state within another select. What is ha...
asked by 20.10.2016 / 15:56
3
answers

Assign value received from $ .ajax to the variable

It is possible to associate a value received with $.ajax with a global variable, because from these values, I need to add them and show them in another table. I have tried it however it always interprets with local variable, losing its va...
asked by 24.05.2016 / 04:18
1
answer

Laravel - Test script errors to return certain status to AJAX

In an application in Laravel I have several scripts using ajax. All expect a response from the controller script and, if true, I run a certain function with ajax ' success ' Example of how I'm doing: script.js $.ajax({ type: 'GET',...
asked by 11.05.2016 / 17:04