0
votes
0answers
38 views
+50

Saving dynamically created form' s schema

I need to dynamically create forms. These forms can be edited, and the new form template(in json) should be persisted after that. Here is the code I use to create dynamic forms: ...
0
votes
1answer
104 views

Passing java attribute to a javascript function array argument

Currently, I have a servlet that forwards to a jsp. The jsp has access to a session attribute "current". During the loading of the jsp, the information in "current" is passed to a javascript function ...
0
votes
0answers
31 views

How to plot graph using jsonarray in android

I am trying to plot a bar graph using ACE, problem is that I have to take values from server parsing jsonarry from server. I am also plotting 4 bar graphs using Fragments to slide each graph. I got ...
1
vote
2answers
45 views

Access an array sent from php to js

So I am trying to get sent an array of json objects from php file to js. The method that I am using seems to be working since I used console.log to print the object (array) I am getting and I got ...
1
vote
3answers
571 views

How to Remove Square bracket from JSON

I have one json string like below [ { "Name": "TEST", "deviceId": "", "CartId": "", "timestamp": 1383197265540, "FOOD": [], "City": "LONDON CA" ...
0
votes
1answer
45 views

Call a GET API each XX seconds, and put the JSON response in a CSV

I'm a newbie, and I apologize for this. I am writing a script that will make a GET request. The result is a JSON array and the best deal would be to have it put automatically in a CSV/TXT file. ...
0
votes
2answers
1k views

Get a JSON array with HTTP Get using javascipt (jquery)

I've been trying some code from here to achieve my goal but I haven't found the solution yet. Goal: I have to get a JSON objects array from a web (through the URL) using GET method. I have to do that ...
0
votes
1answer
138 views

Fetch the specific column value from Datatable when user clicks

I have a datatable populated with aaData which is depicting the task created by users. Now, there is an action column in datatable which has two or three action buttons or logos like pdf - to view the ...
2
votes
1answer
1k views

Slicing a JSON array to get first five objects

I have a JSON file wherein am reading the objects and displaying them in a div. But i just need to show only five of the objects rather than all. Below is the code which i am using ...
0
votes
2answers
68 views

issue with understanding json syntax

I have a json file NAME:abcd.json Its content starts like following(this looked pretty wierd to me as this was the first time i came across such json file)--> ["51b59c2081ecf", [["parties", 0.0793, ...
1
vote
2answers
87 views

file.json data to be used in d3js?

This is the json file that I have generated from GA(FILE NAME-->tracking.json) ["51b59c162de88", [["parties", 0.0, 0.011]]] ["51b59c1b4f52f", [["star-speak", 0.0, 0.006], ["parties", 0.0, ...
0
votes
2answers
58 views

Difference between following arrays? [closed]

This is ARRAY1 var array_1 = ["51b59c162de88", [ ["parties", 0.0, 0.011] ]] ["51b59c1b4f52f", [ ["star-speak", 0.0, 0.006], ["parties", 0.0, 0.011] ]] This is ARRAY2 var array_2 = [{ ...
0
votes
3answers
63 views

How to create json array containing array

how to create this type of array in javascript?? my array structure as below { "Name":"Mr.X", "Name":"Main Outlet", "data":{ "company":{ "company_id":"5", "company ...
1
vote
1answer
1k views

Pass JsonArray data from serveResource to jsp and display on JSP - Liferay

I have a jsp where I have a dropdown box. Whenever a user selects any item from the dropdown box its information should be displayed. For this I am using ajax. I have created serveResource function to ...
1
vote
3answers
89 views

How to display specific JSON data? [closed]

Here is my json data : var jsondata = [ { "month" : "01" }, { "folders" : [ { "name" : "test1" }, { "name" : "test2" }, { "name" : "test3" } ] }, { "actions" : [ { "id" : ...
0
votes
3answers
47 views

how can i make this jsonArray form?

I want to get this (four keys & values in one object): [{"sms":"Y","email":"Y","phone":"Y","oto":"Y"},{"sms":"N","email":"N","phone":"N","oto":"N"}] but this is result : ...
3
votes
6answers
12k views

How to iterate JSON array in JavaScript?

I have this below type of array. I want to iterate this array in JavaScript. How is this possible? var dictionary = { "data":[ {"id":"0","name":"ABC"}, {"id":"1","name":"DEF"} ...
2
votes
2answers
66 views

Extra numbers appearing after JSONArray creation

I'm creating a JSONArray with javascript, and something strange happened to my new Array: var arrayfinal = new Array(); //Order array by elements function SortByPuntuation(x,y) { return ...
1
vote
3answers
3k views

Find the value of specific element satisfying condition from json array [closed]

Friends I have following like json array [ { "Rate":100.0, "MaterialID":"BOLT", "BrandName":"", "Description":"", "Unit":"KG", "TokenNumber":2 }, { ...
0
votes
1answer
666 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
207 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 ...
1
vote
1answer
2k 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 ...
1
vote
2answers
476 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
228 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
196 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
587 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 ...
1
vote
1answer
1k 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
383 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 ...
2
votes
2answers
820 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
963 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 ...