Tagged Questions
0
votes
1answer
35 views
JavaScript - Building of JSON data structure - How to change key name with variable value
I am dynamically building a JSON data structure. My code works fine, but I have a problem, as I need to set the data up, then replace the key name.
I need to replace the key name below with one of my ...
0
votes
2answers
41 views
Jquery - Array manipulation from a select box
I'm creating a tag suggestions function, depending of a category. So, I have a select box with a bunch of categories, when I select a category, I want to display the sub-categories (using an array ...
0
votes
1answer
83 views
HashMap to JSONArray and handling the response in jquery
I have this HashMap< String,Employee>() object and I convert it to JSONArray as below
JSONArray jarray = JSONArray.fromObject(myHashMap);
Note that the key in the map is always a numeric literal ...
0
votes
0answers
68 views
JSONArray auto-replaced with empty brackets in JS
I am trying to post a JSONArray I get from Java to an aspx page using JS. Problem I am facing is that when I get the JSONArray string from Java - it gets replaced with empty square brackets in JS.
I ...
1
vote
2answers
213 views
web service call and JSON array manipulation in javascript
I need to call a web service from javascript that returns a JSON array in the following format:
["hello","there","I","am","an","array"]
Unfortunately, the javascript library I'm using (Sencha ...
2
votes
4answers
87 views
Extracting data from JsonArray using JS/jQuery
I have a JsonArray something like this.
var json_array = [{ "text": "id", "size": 4}, { "text": "manifesto", "size": 4}, { "text": "also", "size": 4}, { "text": "leasing", "size": 4}, { "text": "23", ...
0
votes
3answers
72 views
How to take json response in an array
I am making a ajax request in jquery and in return getting the response but not as an array.
...
0
votes
2answers
184 views
JSONArray - how to display using javascript (jsp)
I've got a java servlet to connect to a MS SQL 2008 database and retrieve info, pass the resultset on to a class to convert it to jsonarray and then return that info.
Here is a sample of the returned ...
0
votes
1answer
222 views
JSON Object creation and JSON array manipulation
This is basically a theoretical question on the way the decoding of a JSON script takes place. I am new to JSON and JavaScript, so was taking a tutorial. It gave me a few example codes to work on. I ...
0
votes
1answer
228 views
Sertonin JSON: how to read a JSON array into a Java List?
Here is my code:
JsonReader reader = new JsonReader(readTwitterFeed);
List<Result> results = reader.read(new TypeDefinition(List.class, Result.class));
Result is a simple class with just one ...
1
vote
1answer
318 views
How to create Bullet Charts of JSONArrays in JavaScript?
Help! How to change Bullet Charts JavaScript code from these web-page:
http://mbostock.github.com/d3/ex/bullet.html
in such a way, that the data for visualization would be taken not from ...
0
votes
2answers
483 views
Reading Dynamic JSON Array
I trying to build a JavaScript function which will grab a JSON encoded array and return a value based on the requested key. I use the jQuery $.parseJSON() method to take the JSON string and convert it ...