jsonarray is the array of elements in json format. JSON is the light weight communication medium across multiple cross platforms.

learn more… | top users | synonyms

2
votes
3answers
47 views

Android- create JSON Array and JSON Object

How can I create a JSON with this format in Android: Since the API that I will be passing will parse JsonArray then the object. Or would it be okay if just to pass a json object? Since I will just ...
-1
votes
3answers
40 views

Access json values with jQuery [on hold]

I want to retrive trend values from the json array retrieved from the twitter api. I require the top 5 trend names. Json response [{ "trends": [ { "name": ...
0
votes
2answers
37 views

How do i sort JSON Array in java

I have a JSON Array: public JSONObject toJSONObject(DataJSONConverter dataJsonConverter) { JSONObject jsonResponse = new JSONObject(); if (datas != null && dataJsonConverter != null) ...
-2
votes
4answers
51 views

How to parse this nested JSON array in android

I have to parse the below nested Json array's data into my application. I am confused how to get the values out of it. { "prodCat_list": [ { ...
-2
votes
1answer
27 views

Using Gson retrieving a JSON array in Java [closed]

My json object and array looks as follow -: {"order":[{"name":"Nivea Deo","qauntity":1,"price":25},{"name":"Johnson Baby Powder","qauntity":1,"price":70}]} I am sending this using JSP and capturing ...
-3
votes
3answers
57 views

How to Parse JSON to String Array [closed]

I have this JSON { "tags": [ "php", "javascript", "object", "angularjs", "html-select"] } JSONArray tagsJSONArray = jobj.getJSONArray("tags"); tags = ...
0
votes
1answer
26 views

JSONObject to JSONArray with days as keys

I have the following sample json: {\"2013-05-30\":{\"available\":\"1\",\"bind\":0,\"info\":\"\",\"notes\":\"\",\"price\":\"\",\"promo\":\"\",\"status\":\"available\"}, ...
-1
votes
1answer
42 views

Asynctask is not working with JsonArray - Android [duplicate]

I have an Asynctask that has a json function. The function collects comments from a database. The comments are then placed into a json array. This is all done in the doInBackground part of the ...
2
votes
1answer
37 views

Sorting a json array based on a key using knockout

I have a jsonarray something like this: var jsonarr= [{"displayName":"Rachita Jain","phoneNumbers":[{"value":"(787) 989-6756"},{"value":" (897) 867-4666"}]},{"displayName":"Akanksha ...
0
votes
1answer
38 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 ...
1
vote
1answer
50 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 ...
-5
votes
1answer
42 views

How to transform a JsonArray to JsonObject? [closed]

i have a json array like this : [{"myid":"123","post":"harry"},{"myid":"456":"ramon"}] i would like to make a jsonobject out of it.I'm used to json array like this : {"myid":"123","post":"harry"} ...
0
votes
2answers
45 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
34 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
40 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 = [{ ...
1
vote
1answer
26 views

How to show images in UITableViewCell From NSMutableArray?

I'm doing this : (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath*)indexPath { static NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = [tableView ...
0
votes
0answers
45 views

symfony 2.3 doctrine data type json_array missing

After updating from symfony 2.2 to symfony 2.3 running schema update results in: [Doctrine\DBAL\DBALException] Unknown column type json_array requested. Also when creating a new ...
0
votes
1answer
44 views

Unable to parse JSON array in Android app

I have an Android app that uses bar code scanner library. All is working good, until I have created an Activity that is called after the scanning is done. That Activity uses this JSON array: ...
1
vote
1answer
51 views

Custom layout with JsonArray

Here is my code : public class Fragment1 extends SherlockFragment { ListView lista; ArrayList<String> items = new ArrayList<String>(); private ...
0
votes
1answer
32 views

How to separate JsonArray data

I got confused how to separate JsonArray data. I want to separate the received chat messages so it appear one by one in each bubble not in becoming into one big bubble. What am I supposed to do, to ...
-3
votes
2answers
165 views

How to parse JSON array into the android spinner from asp.net webservice which returns string as below [closed]

[ { "value": "--NA--", "id": "251" }, { "value": "Adilabad", "id": "1346" }, { "value": "Yavatmal", "id": "1478" } ] How to parse above json into android spinner from json ...
0
votes
0answers
70 views

Jobject to jarray

I'm trying to convert a list of values into an easy to read string. But all the info i find, is for javascript or C# and still doesn't work for me. The JSON Text (gotten from a website) looks like ...
-1
votes
2answers
56 views

how to parse JSONArray in android

I want to read this JSON lines but because it start with JSONArray im a little confused "abridged_cast": [ { "name": "Jeff Bridges", "id": "162655890", ...
0
votes
1answer
19 views

Gettign Unterminated string at character exception in JSONArray

I have a String [{'type':'01661140020359^@'}]. While initializing jsonarray with this string, am getting Unterminated string at character due to ^@. how to skip or avoid such characters?
-2
votes
2answers
61 views

Java Convert this string to JSONArray [closed]

I am getting the following String response from a server: {"fid":"1272","uri":"http://someurl/services/file/1272"} I need to convert it into a JSONArray. Any help? By the way, I tried this and it ...
-2
votes
1answer
42 views

parsing of json array objects

i am trying to parse a json array,i am facing problem. My array is like this: configure: {"id":4,"userId":107,"deviceMacAddress":"00:06:66:30:02:3C","medication": ...
1
vote
2answers
47 views

create json file dynamicly with hierarcy data

I need to create similar JSON file structure to the following post but its need to be dynamic, when I search I found the following post but the solution is specific for entry 1 and entry2 my needs is ...
0
votes
3answers
64 views

Create JSON file with deep array

I need to create new json file with the following structre I am not able to success since i have structure inside structure/array ,the file should look like : any idea how to create one like this? { ...
0
votes
1answer
200 views

Json / JsonArray to HashTable / List in Android

I created a method "Json to HashTable" and vice versa. I use HashTable because "Java" there are no associative arrays. My problem now is when there is an array in the json. This means from "Java" an ...
0
votes
3answers
46 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 ...
0
votes
1answer
64 views

Deserialization of array with DataContractJsonSerializer with Windows Store App

Is it possible to deserialize a json array with native DataContractJsonSerializer in a Windows Store App? Example, from: ...
0
votes
1answer
125 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 ...
0
votes
0answers
13 views

Searching a JSONArray with contains

Lets say I have JSONArray as : [{"serviceInstance":"completed_1","AlertState":"Ok","AlertValue":"0"}, {"serviceInstance":"completed_2","AlertState":"Ok","AlertValue":"0"}] Now, I need to find if ...
-4
votes
1answer
156 views

android: how to read json data

can you please help me out how to read this data. i received JSON data in a string. But not able to parse it. Please Help. This is my json: { "951":{ "title":{ "en":"Vida Crew", ...
1
vote
3answers
52 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
1answer
59 views

jquery autocomplete bug? or wrong version?

so let say i have an json object which i get from asmx file / web service file. [ { "UserName": "hl", "FirstName": "hendra", "LastName": "lim" }, { ...
0
votes
3answers
42 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 : ...
0
votes
2answers
48 views

Parse jsonArray from api response in Android

I'm trying to access an API that respond with a JsonArray. The only tutorials I found was to parse the response of a JsonObject. I'm still trying to wrap-up my head around Android, I don't even ...
1
vote
1answer
38 views

Comparing two JSONArray and finding differences

(This question needs for the equality) But I have two JSONArray and I will check the strings that exists in these arrays and find the different elements. Normally I can see the values of the arrays ...
0
votes
3answers
124 views

JSONArray converting object to array in Android Can't find tag

I'm attempting to pull information from an API via JSON on Android. I've successfully downloaded the information, now I need to put it in the JSONArray given the tag "Categories". Ultimately this is ...
0
votes
1answer
133 views

Json Array returning null while parsing in Android

I know this is a very commonly asked question and I found quite a lotta posts in SO. My code is as below and I don't see a reason why the json array is returning null. Could someone please review it ...
0
votes
2answers
120 views

How to put/get multiple JSONObjects to JSONArray?

Is it possible to store multiple different JSONObjects into a single JSONArray? This is the structure, I want to store in a JSONArray. ...
-2
votes
2answers
92 views

SharedPreferences Not retrieving JsonArray, JsonObject after device reboot

I have set JsonArray and JsonObject to Application class to make this objects global. The values stored in json array retrieve before the device is reboot. after reboot json array show blank squre ...
0
votes
1answer
293 views

Convert JSON key value pairs into JSON Array Android

I have an array of key-value pairs like this: ...
1
vote
2answers
310 views

Gson Expected BEGIN_ARRAY but was STRING at line 1 column 62

I have the following class : final class CFS { public Map<String, String> files = new HashMap<String, String>(); public List<String> directories = new ...
0
votes
0answers
38 views

where to create JSONArray in JSON and where the array is store? How to access through web service in android?

I am begginer. I can not understand that how to create JSONArray named any for listview. and where to create it? How to use it in web service. Is it create through java Script or how? And how to give ...
1
vote
1answer
223 views

Best Way to Parse JSONObjects and JSONArrays

So im trying to figure out the most efficient way to parse the following JSON URL'S, I will be doing this in Java on Android. JSONParser.java public class JSONParser { private static final Context ...
0
votes
1answer
44 views

Java JSON array

I have output from url as following: ["HANK-TPSSL4-app","acgeneral-app","acgeneral-web","achalf-app","acproduct-app"] My Java code to get each object from this array: BufferedReader in = new ...
0
votes
0answers
257 views

JSON.stringify to java 2-D array

I am having a jsp page say jsp1 that has an html table table1 with only one row.it allows user input. the information entered is displayed in table2 (on same page) each time there is a new input in ...
0
votes
2answers
131 views

parsing list in JSON without curly braces in android-java

I am trying to read a list from JSON format into Android Java. I can read children using getJSONarray(). But unable to read values of message or email. Seems getJSONarray() doesnt work for what i ...

1 2 3 4 5