Questions tagged as 'json'

1
answer

Data in JSON format is not shown

Hello, I have the following php code: <?php require("config_local.php"); //conexao com o banco de dados $area = "eua"; $st = "ny"; $sql = $pdo->prepare("SELECT prop,old_no,emissao,area,country,e_name FROM table1 WHERE area = :area AN...
asked by 31.05.2016 / 04:14
0
answers

Problem transforming collected data into a json file

I'm trying to write to an .json file, information I collect from a database but for some reason nothing is written. Follow the code:      require_once('../helpers/connect.php'); require_once('../models/marks.php'); $marks = Mark::select($p...
asked by 08.06.2016 / 02:25
0
answers

Return PHP array in JSON in AJAX

I have the following code: function atualizaPainelQtdeReservas(){ var dataFiltro = $(".dataFiltro").val(); $.ajax({ url: "crud/painelQuantidadeReservas.php", dataType: 'html', data: {dataFiltro:data...
asked by 16.06.2016 / 03:08
1
answer

How to get multiple keys in JSON with PHP?

How to get data with foreach through JSON of this type: { "12": { "0": { "9678": { "920": { "224": { "657": "José da Silva" }...
asked by 16.05.2016 / 20:32
1
answer

Query with ForEach and Subquery Node JS and MSSQL

I have a problem that I have not found a solution yet, I have a select in a procedure, I do a forEach in the result, inside that forEach I make another select in another procedure using the Ids as per the code below. The problem is that at the...
asked by 17.05.2016 / 18:41
1
answer

"Can not be converted to JSON" error when trying to create JSONObject from String

I'm using the Kotlin language together with the GSON library to do parse creation / parsing of JSON objestos. I have the following string that stores a JSON object returned from a server val jsonString = "{"age":22,"height":1.8,"profession"...
asked by 05.05.2016 / 21:14
1
answer

Dynamically load content using the select tag

I have a question and I wish you could help me. My case is the following I have a dynamic where according to the selected option it returns a JSON with the information of the Hotels Units. What I need is to populate the JSON content in HTML a...
asked by 11.05.2016 / 20:56
1
answer

How to return json_encode?

I need to return a select done in PHP. It is working normally, but at the time of displaying the result it returns me an error at the end. I need to return json_encode to the android recognize. Follow the schedule below mysql_connect(...
asked by 03.05.2016 / 13:58
1
answer

How to do an update in an array with MongoDB and Morphia?

I need to update an Ingredient in the ingredient list. Until then I just know how to update the entire JSON. How do I update only one item in the array? { "_id" : ObjectId("573c721f75fe72149c4d9987"), "className" : "br.com.teste.productdatas...
asked by 26.05.2016 / 20:33
0
answers

Button loads all instead of filtering by group

I have a problem, where if I press the button to load more blocks through the database, it will load all in the order of the ID, however if I have some filter it continues loading all instead of just that filter and every time I press it to load...
asked by 24.05.2016 / 22:32