Questions tagged as 'json'

3
answers

Transform JsonObject into JsonArray

How do I get the data from this Json? I want to transform into a JsonArray to be able to scroll through, but it is a JsonObject ... { "1":{"a":"1","c":"0","d":"0","m":"0","ns":"0","proc":"0"}, "2":{"a":"1","c":"0","d":"0","m":"0","ns":"...
asked by 19.12.2017 / 14:37
1
answer

Check if a value is inside an array

I would like to do the following: The user enters his zip code and a input field and the value that he inserts into this field wanted to compare if he is in the zip code range (01000 to 19999) p> My questions: 1st - In case I would...
asked by 23.12.2016 / 16:35
1
answer

Is there any difference between saving the settings in dotEnv, JSON or INI?

To save sensitive data from the application, is it recommended to save in dotEnv or can I save it in any other format since the file is not in the public directory? I see many talking about dotEnv, I wanted to know why they say it's so secure...
asked by 11.01.2017 / 00:14
3
answers

Local communication through online application

I am developing a system for ordering from a snack bar / pizzeria. Let's suppose that the waiter places the order with the Tablet ( Android ) on the customer's desk or the customer goes and requests the receipt ( Windows ). Depending on the requ...
asked by 09.10.2016 / 01:23
2
answers

Problem of encoding servlet, json and jquery.ajax

I created a servlet that returns a simple JSON. I was able to consume the same quietly, however putting the contents in a div was as follows: 0: �gua 1: a�ucar 2: sal 3: canela 4: �leo When looking at the return of the servlet thro...
asked by 15.11.2016 / 23:28
2
answers

how to parse a json return with complex object

How do I parse a json return where I have optional fields such as phone, the user can have more than one such as residential, mobile and phone to message, in this case if the user has informed the phone it list if I have not informed it does n...
asked by 14.11.2016 / 18:30
1
answer

Ajax, PHP Problems when receiving data

Good people, my problem is this. I have a JS function to do a query in the mysql database via ajax, it returns apparently correctly but when I try to access the value of "undefined" This is an alert (response); being "response" ajax response...
asked by 20.10.2017 / 17:27
1
answer

Helps in passing a jsFiddle code to an HTML file

I have a code in this jsFiddle that I changed, but now I am having difficulty passing it to an HTML file . My code: <!DOCTYPE html> <html lang="pt-BR"> <head> <meta charset="UTF-8"> <title>Document<...
asked by 27.10.2015 / 20:08
2
answers

Problem with toFixed in return Json

I'm having trouble using toFixed on a json return. A part of the code success: function (dados){ $.each(dados, function(index){ var guidPedido = dados[index].guid;...
asked by 01.08.2016 / 18:32
1
answer

return JSON with special characters in URL

I'm having a problem with the return of a JSON, I've done a query to fetch some images from the bank, some URLs the users have registered the images with special characters like - > (ç ã) The texts containing these types of characters are r...
asked by 16.07.2016 / 20:36