Questions tagged as 'json'

2
answers

Update JSON value with JavaScript

How can I update the data.dM value without having to rewrite everything reset ..? When I do data.dM = 'lalalaa'; the value is not updated in data var data = [{ "dM": 'lolololo' }]; data.dM = 'lalalaa';     
asked by 23.05.2015 / 00:25
1
answer

How to deserialize JSON with C #

I have this JSON [{ "new_as_cod": "0010955", "as_nome": "NAME", "as_cpf": "1212121212", "as_email": "[email protected]", "as_cep": "88.025-200", "igr_nome": "1\u00aa IGREJA BATISTA - FLORIANOPOLIS", "id": "2781", "valor": "50.00", "pg_tipo_id": "C...
asked by 28.10.2015 / 14:14
2
answers

JSON loop with PHP

I have the following jSON { "nome": "Alisson", "nome": "Bruno", "nome": "Junior", "nome": "Nicolly", "nome": "José", "nome": "Greice", "idade": "20", "idade" : "21", "idade" : "29", "idade" : "14", "idade" : "11", "idade" : "20" } I want to...
asked by 27.07.2014 / 21:30
2
answers

I can not filter the array objects using Filter

I'm trying to return the objects according to the id of the genres but an empty array is being returned var filmes = [ { title: 'Primeiro Filme', genres: [ { id: 10 }, { id: 15 }, {...
asked by 18.01.2018 / 13:39
2
answers

Good practices for Rest services [closed]

When I made my first API rest, I defined my JSON structure and it always returned the same structure even the pair having given it or not. I talked to a new co-worker and he introduced me to another perspective. If the pair has not given it, it...
asked by 16.02.2018 / 12:38
1
answer

Array conversion with json_encode PHP

Oops, does anyone know why when I do this: json_encode(array("0" => 0)); Return this: [0] Instead: {"0":0}     
asked by 14.07.2015 / 00:52
3
answers

optimize jquery datatable with a database with more than 30,000 records

What is the best way to optimize the bank's data return? the ideal would be to store (on the server-side) all the data (select * from data) in an array of objects and send it to the client-side? From there, do I handle this array via javascript...
asked by 16.04.2015 / 18:56
2
answers

Problems printing a JSON table

I can not print the table, what's wrong with my code? var json = [ { "tempoNS":104095548, "tempoMS":104, "tamanhoArray":9000, "nome":"Bubble iterativo" }, { "tempoNS":84671736, "tempo...
asked by 30.04.2015 / 03:57
2
answers

How to Read this json with PHP

How do I read this JSON file with PHP. I tried this way, but it does not work. <?php $json_str = '{ "numero":"1000", "log": { "message": "testing connection to the target URL", "level": "INFO", "time"...
asked by 23.09.2017 / 16:15
2
answers

How, after a POST request, receive the JSON return in C #?

I need to have a POST link request, so I also get the json in php . This is the test code in php <?php if(isset($_POST['request'])) { echo $jsonret = '{"request":"sim","name":"'.$_POST['request'].'"}'; }...
asked by 07.11.2016 / 22:31