Questions tagged as 'json'

1
answer

JSON return conversion error for JAVA Class

I have a java class public class PRODUTO extends SugarRecord implements Parcelable { private float id_pro; public PRODUTO(float id_pro){ this.id_pro = id_pro; } public float getId_pro() { return id_pro; } public void s...
asked by 16.05.2018 / 07:11
2
answers

JSON does not accept accent

Friends, I have a problem, the string that has an accent can not get it using JSON: $imagens = array(); $sql = mysql_query("SELECT * FROM texto_index"); while ($row = mysql_fetch_row($sql)){ $imagens[] = $row; } echo json_encode($imagens...
asked by 01.07.2014 / 18:13
2
answers

How to decode a JSON Array on Android

There was a need to decode a JSON Array like this: output: [ [{ }, { }], [{ }, { }] ] I was doing this in a way that decoded a Array like this: output: [{ }, { }, { }] Code of how you were doing: Meth...
asked by 09.09.2014 / 15:06
1
answer

Doubt when deserializing objects JSON C #

asked by 28.09.2017 / 03:49
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
1
answer

Grouping JSON using javascript reduce ()

Is there any way to group a Json using the Reduce() method of Javascript, as the example below: contas = [{id: 1, descricao: "AGUA", valor: 100, juros: 5}, {id: 1, descricao: "AGUA", valor: 100, juros: 5}, {id: 2, de...
asked by 18.07.2017 / 16:02
3
answers

Serialization and Deserialization JSON in desktop application

  "Price": 200, "Price": 900.77, "PrecoST": 225.19, "Description": "   ASUS AMD RADEON R5 230 VIDEO CARD 1GB DDR3 64BITS R5230-SL-1GD3-L   "IMP", "Group": "VIDEO PLATE", "Mark": "ASUS", "Source": 6, "NCM": "8473.30.43", "EAN": "0000000000000", "...
asked by 16.09.2014 / 21:30
1
answer

Get Dynamic Element in JSON

I have the following json { "error": false, "installments": { "visa": [{ "quantity": 1, "installmentAmount": 500.00, "totalAmount": 500.00, "interestFree": true }, {...
asked by 02.01.2017 / 20:20
1
answer

How to display a list coming from a Json sub-array?

I'm building divs dynamically via Javascript. I want to make her content display some information (username, emails, etc). The data is coming from the Database in Json format. The problem is that it does not display all participants. Displays...
asked by 04.11.2016 / 18:04
1
answer

How popular is a select with JQuery, JSON and AJAX? (MVC)

I followed some codes that I found here on how to populate a selectbox, but it is not working, is something missing? I'm getting a list of data with my Controller. JavaScript $(document).ready(function () { $(document).select...
asked by 03.10.2016 / 16:53