Questions tagged as 'json'

1
answer

How to produce JSON in the format that Highcharts expects?

I have the following code in C #: Dictionary<string, object> dataResult = new Dictionary<string, object>(); dataResult["data"] = new List<object[]>(); dataResult["name"] = i; foreach (var item in query) { object[] values...
asked by 15.02.2014 / 13:57
1
answer

Remove duplicate elements in Array

I am getting an array by JSON , and using array_unique to remove duplicate values, however, it is displaying the following error: <b>Notice</b>: Array to string conversion in <b>/var/www/html/.... </b> on...
asked by 26.08.2015 / 17:08
1
answer

How to access data from the innermost "level" of a JSON?

I needed a way to access the innermost "level" of JSON below: (name, value, last query and source) { "status": true, "valores": { "USD": { "nome": "Dólar", "valor": 2.333, "ultima_consulta":...
asked by 09.10.2015 / 18:59
1
answer

infinite scroll in Angular Js with external JSON

I'm having a bit of trouble regarding the creation of an infinite scroll in angularJS from a JSON file generated on an external site. What I need is that the infinite scroll be called when the item of variable posts is equal to 10, callin...
asked by 02.07.2015 / 22:42
1
answer

How to change this JSON object?

I have a problem with this: I am using CakePHP and sending JSON to a datagrid of EasyUI as follows: $rows = $this->Produto->find('all', array('fields' => array( 'id', 'codigo_produto', 'codigo_pedido' ))); $total = $this->Pr...
asked by 29.09.2015 / 15:02
3
answers

How to implement the method in Json using Serializable?

GET PUT DELETE POST I made a GET method, looked like this: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Script.Serialization; using System.Web.Services; /// <summar...
asked by 18.05.2015 / 22:30
3
answers

Why JavaScript objects are not always JSON?

This for example: { "nome": "Meu nome", "sobrenome": "Meu sobrenome" } Can it be considered an Object and also a Json? If not, why not? What will differentiate one from the other is when instantiating?     
asked by 11.07.2018 / 12:45
3
answers

Autocomplete jQuery does not show options

Description Need: Need to autocomplete with jQuery , PHP and from what was selected, I get ID , query the database, and display what I need . Problem: I'm not able to display the records in input that load...
asked by 22.02.2014 / 03:53
3
answers

Pass SQL result to JSON

Hello, I want to pass the result from a select to json, but I can not see why I can not see it. So could anyone tell me why this code does not print anything? include_once 'conexao.php'; $query = "SELECT client_id, name, email FROM clie...
asked by 03.11.2016 / 23:57
2
answers

Safety Angular Application

I have questions about security, I'll illustrate: In my front , in my controller I have this method: $scope.getAllpessoaGrid = function (strPesquisa, tipopessoa) { $scope.progressbar.start(); $http.post("/pessoa/getAll", {...
asked by 06.04.2017 / 22:46