Questions tagged as 'json'

1
answer

Receiving Json with empty arguments

I created an API to receive database data via json for my android application, but some columns in my table are null, generating an empty json argument that is generating error in my application, I would like to find out the best way to treat th...
asked by 02.04.2018 / 23:10
2
answers

want to display all json array records

I made this javascript code: function ajax(response) { var dados = response JSON.parse(dados).forEach( function (registro){ var html = "<tr>" html += "<td>" html += registro.nome html += "<...
asked by 15.03.2018 / 22:25
1
answer

Get values from a json / object

I have the following json: And2selects,oneforstateandoneforcity,Ialreadyfilledthestatecorrectlyusingthisjson://comboboxestados$.getJSON('http://api.doupenglish.com.br/unidades',function(unidades){varselectestado=$("#selectestado"); v...
asked by 09.03.2018 / 00:58
2
answers

How to send and receive image by json? [closed]

I made an app in Xamarin that the person will have to sign and I need to send that image to the server If possible leave the code to accomplish such task     
asked by 04.02.2018 / 14:43
1
answer

How to return an error in C # with Json Result?

I'm starting now with the C # language, and I came across the following task on a system, I must do an error handling and return this in Json Result, the returned data must be collected and sent by email ... that is, when generating the error on...
asked by 25.01.2018 / 12:45
1
answer

String size exceeds the value set in the maxJsonLength property

I'm trying to generate a Json file from a SELECT of the SQL SERVER 2016 table. There are about 4713 rows, this is in excess of the value set in the maxJsonLength property. Can I exceed this set value? Web.config <s...
asked by 13.04.2018 / 00:01
1
answer

AJAX request with different domain

My Request url="http://algumip:algumaporta/dowPDFNF?cChave="+chave $.ajax({ url: url, dataType: 'jsonp', success: function (data) { console.log(JSON.stringify(data)); }, type: 'POST' }); error that returns: U...
asked by 10.05.2018 / 16:03
1
answer

How to get a JSON data in this case

I can not get a JSON data in this case: Use this site only for your own tests link I tried some combinations: $url = "https://devjp.xyz/data.json"; $json = file_get_contents($url); $json_data = js...
asked by 13.05.2018 / 19:23
1
answer

Separate an array of JSON into columns and rows

I'm getting an array of JSON in the back end like this: {"idDistrito": "23", "nome": "rere", "codigoDne": "154545", "cns": "565665", "entidade": { "idEntidade": "1", "nome": "Entidade 01" }, "e...
asked by 11.12.2017 / 12:37
1
answer

Sort php array values!

I have a return JSON . "members": [ { "name": "Drogo", "role": 3, "donations": 278, Where I use foreach to traverse it! foreach ( $CMAMBERS as $e ) { echo "nome: $e->name&l...
asked by 03.12.2017 / 23:20