Questions tagged as 'json'

1
answer

Problems using getJSON to load Json from php page

The integer is to get the result of a select, assign in an array, and put its value in an html element. the value is listed and assigned to the array, however, I can not insert it into my html my jquery that does this <script type="text/jav...
asked by 15.05.2018 / 01:53
0
answers

How to convert a json return into a C # object to display the result on the [duplicate]

I'm having a problem while reading a JSON and convert to an Object and display the data on the screen using C # , I'm using the Newtonsoft and would like to know how to check if the data type is an array and check if it is empty? Here i...
asked by 15.05.2018 / 02:20
1
answer

TJson.ObjectToJsonString in class with variable TObjectListT

I have a class TEntrega , which in turn has a variable TObjectList<TItens> I need to generate a JSON from this class to send to a webservice. For this, I used TJson.ObjectToJsonString(Self) . My result was as follows:...
asked by 04.05.2018 / 14:35
1
answer

Object .length property json returning number out of reality

I have a json array with two property objects, an id and an email, and it has only three objects within that array, but the number returned from the length property is 152. Can anyone help me? /*JSON*/ [{"id_cli":"1","em_cli":"email@out...
asked by 09.05.2018 / 17:57
2
answers

Convert utf-8 codes to unicode

Well, I have a JSON where all unicode symbols like this "★" are in this format: "\ u2605" have some way to convert those codes to the symbols when my program NodeJS read the JSON ? Example of how it is: {"name":"\u2605 Bayonet","pri...
asked by 24.08.2017 / 16:47
0
answers

Receiving Post Json in Django FrameWork

If I send a post like this: data={ 'supplier': supplier_name, 'date': date, 'payment':payment, 'material':[{"name":"tubo","qtd":3,"price":3},{"name":"calha","qtd":4,"price":5}] } $.ajax({ type:"POST", url:"{%...
asked by 09.05.2018 / 21:30
0
answers

How to fix a JavaScript error

I'm using the javascript library p5.js , and I'm trying to access local files , in the current case I'm trying to load a json file through the loadJSON (url) function provided by the library. But I'm having some errors in this attempt. I hav...
asked by 05.05.2018 / 02:10
0
answers

Phonegap app stay logged in

I already have a ready app made in phonegap, however the need arose that it stay logged in even after closed, as is the case with most app's. All queries are MySQL calling an external server. What should I use for this?     
asked by 03.05.2018 / 04:47
0
answers

serialize an array and pass as parameter to model

My Action: public JsonResult SalvarCadastro(ListaModelView model) { } My Model: public string Assunto { get; set; } public string Mensagem { get; set; } public List<ContatosEmailModelView> Lista { get; set; } My...
asked by 04.05.2018 / 15:01
0
answers

Assign too large Json to a String-like variable

I want to run tests on an algorithm I'm developing with this Json . In order to test this type of input, I would always create a variable assigning json between strings, so the variable would get the string content in several lines and then...
asked by 26.04.2018 / 18:56