Questions tagged as 'json'

2
answers

Make json format insert in mysql and recover in Java [closed]

I have the following String in the format json : { "ADT":"0", "CHD":"0", "INF":"0" } I need to insert in a table in mysql database and retrieve this in Java . I'm using VARCHAR (50) and looks like this: { "ADT":"0", "CHD":"0",...
asked by 09.09.2014 / 17:45
1
answer

how to get url from console requests in javascript

I need to get the url of a get from the console I want to know this because I have an iframe that I need to get the url from a get of it only in the url there is a random variable that keeps changing whenever I give reload there is some way I ge...
asked by 15.06.2016 / 23:54
1
answer

How to refresh on another page after entering data in the bank

I am creating a system of attendance where there is a screen only to display the passwords that are being registered in the database. The problem is that I can not update the passwords in real time, because I'm calling them from another page,...
asked by 03.05.2016 / 16:35
3
answers

Help to filter a JSON with jQuery?

I have this code that filters a JSON object: var filtrar = function (horamin, horamax) { var data = JSON.parse(JSON.stringify(json.aPesquisa)); let result = data.filter(item => { let voos = item.trecho[1].voo.filter(voo => {...
asked by 07.07.2017 / 19:47
4
answers

Function has real-time screen, lock the screen with time!

I'm studying ajax, jquery and php. And with the goal of making a screen that loads automatically, for future chatting. What I want to understand is the screen loading function. I have the index.php code <!DOCTYPE html PUBLIC "-//W3C//DTD...
asked by 24.08.2017 / 20:03
1
answer

Referencing or embedding documents in mongodb and couchdb

I'm thinking of creating referenced documents instead of embedded because I have a database in which an airplane has flights and flights have airports. Anyone experienced that could indicate the best option? Imagine that I choose the referenc...
asked by 25.09.2015 / 04:46
3
answers

Help with Json filter with jQuery

I need help with the filter in Json with jQuery, I have this code: var chamaFiltro = function(horaminida){ var pesquisa = { idamin: horasParaMinutos(horaminida) }; var filtrados = json.aPesquisa.filter(function(voo) { voo = JSON...
asked by 19.06.2017 / 20:34
3
answers

Json Data on android

When running my app, it crashes when I try to read Json MainActivity.java public class MainActivity extends AppCompatActivity implements NavigationView.OnNavigationItemSelectedListener { String login; String nome; int...
asked by 19.07.2017 / 14:24
2
answers

Is it possible to change the name of a JSON position using JavaScript or jQuery?

I have this JSON: [{ id: 1, total: 50.00 }, { id: 2, total: 70.00 }] I would like to know if it is possible to change the name of 'total' to 'price' using JavaScript or jQuery?     
asked by 16.11.2017 / 16:28
2
answers

How to consume JSON files in PHP in different ways?

   This topic differs from subjects such as: "How to consume JSON in   PHP string ; "Extract json value in php";   php "or" Recover JSON in PHP "   Although there is co-relation in various PHP language subjects, and the JSON format, it d...
asked by 01.07.2017 / 00:08