Questions tagged as 'json'

1
answer

Problem when creating WebService in Golang

I am doing a WS , where I make a query to the database, as the database to which I made the query is Informix , the connection was made through ODBC , the problem that I have is when creating the json due to the variabl...
asked by 25.05.2018 / 22:20
1
answer

How to display multiple bars in the jquery flot library with json and ajax?

I have a problem with the jquery flot extension, because I have to transform it into a two-dimensional array or with this format [[0,0], [0,0]], at the moment only for normal arrays, and I also know how to do this format, which in essence is the...
asked by 05.11.2016 / 05:00
1
answer

JsonObject Android

I am making a listview through a json that I bring from a server. The detail is that I can not pass my data to listview in this function I try to save them from there to move them to listview public ArrayList<String>...
asked by 11.08.2017 / 08:54
2
answers

Convert a JSON to an array

My question is this: How can I convert the result object to a list (array) in Java ?. The JSON is something like the following: { "order_id": "12345", "paging": { "total": 41, "offset": 0, "limit":...
asked by 15.05.2017 / 00:01
2
answers

Pass ResultSet to a JSON in Java JSP

My query is to know how I can pass a ResultSet from SQLServer to JSON, since I am working with JavaScript libraries (ChartJS) to generate graphics for a dashboard and it only reads data in that format. package DAO; import conexion.Conexion; i...
asked by 07.01.2017 / 01:09
2
answers

Bootstrap table - reload records according to ajax json object

I'm creating a website with Bootstrap . Initially when loading the page I use PHP to insert the results in the cells of the table. So far so good. Then I use a button with a modal menu of Bootstrap which has a series of fields that are i...
asked by 04.01.2017 / 17:52
1
answer

The Internet Explorer browser does not download the file correctly

I have a problem downloading a file with Internet Explorer in any version. My problem is that I receive an array of bits from my controller which I receive in JSON and I download it from javascript . Note: I do not have...
asked by 21.09.2016 / 02:15
2
answers

Random error when traversing a json in a javascript function

I have an error of: data [key] .forEach is not a function. but it is totally random, sometimes perfectly executes others not. This is my code: <script type="text/javascript"> $(document).ready(function() { var table = $('#example'...
asked by 26.10.2016 / 23:23
1
answer

Group and accumulate values in JavaScript

Dear: I have the following file JSON with information: var rawtData = [ { date: "2015-01-03", "pv": 50, "ac": 100, "ev": 50 }, { date: "2015-01-01", "pv": 100, "ac": 200, "ev": 200 }, { dat...
asked by 22.02.2017 / 22:33
2
answers

Convert an array to json from swift

I need to convert an array of strings that I get from an xml, into a json file and then save it in a sqlite database. I have this code: do { let jsonData = try NSJSONSerialization.dataWithJSONObject(dictionaryOrArray, options: NSJSONWrit...
asked by 12.08.2016 / 11:23