JSON stands for (Java Script Object Notation). It is a simple and light-weight data interchange format that can be easily read by humans and machines.Android includes the org.json library which allow working efficiently with JSON. This provides easy parsing of JSON data and creating JSON strings
Questions tagged [android-json]
577 questions
-2
votes
1 answer
How can i get response from json by sending these parameters?
how can i send these json sample parameters to get data? Please help me. Thanks in advance.
{
"request" : "2015-03-19 12:15:34",
"msisdn" : "9199620*****",
"key" : "XYZ123",
"id" : "ABC123",
"category" : "chennai",
"date" :…
-2
votes
1 answer
Can't extrack information from JSON File
[Android] I have a JSON File that it is composed in this way:
"5":{
"15":{
...
},
"18":{
..
},
"7":{
...
},
"9":{
..
}
}
}
How I can…

Gozilla
- 13
- 3
-2
votes
2 answers
retrieve data using json in android
I need to display the result in android text view that I obtained by json result. I only get the success message when I run the app. I want to get the textview displayed.
Java Code:
JSONObject hay;
// Progress Dialog
private ProgressDialog…

shana
- 1
- 2
-2
votes
3 answers
How to get particular value from JSON response in Android?
I want to get the value of "result" from the below JSON response and store it locally.Here's the code:
private class GetContacts extends AsyncTask {
@Override
protected Void doInBackground(Void... arg0) {
…

Ben
- 73
- 2
- 12
-2
votes
2 answers
unable to success through json...curser is not going try block
I'm letting users retrieve their forgotten password by webservice. all are function is performing json give success output but after this debugger is not going in try (if else) condition...
my forgetpass response:
{
status: "Success"
msg:…

user3596211
- 65
- 1
- 7
-2
votes
2 answers
Android how to send data string via Json to server?
I need to send some data inputted by edittext in my Android app, but I don't understand how I must to make the code for server side! I'm on PHP 5.3.

user3437592
- 59
- 3
- 9
-2
votes
1 answer
Retrieve JSON from url in android in Main Class
I have a very simple android project which is a basic list of items.
Is it possible to get a JSON from a URL in the same Main.java class without needing any other classes or files?
Basically is there a script that's small and minimal that can be…

Sebastian
- 79
- 5
-3
votes
4 answers
To connect with a web-service there is two options, either use a Library or "JSONParser" Class. Which is better? which one is safe?
I am asking this because I am beginner in android development.
I am doing a core-banking application, so I used JSON Parser class to connect with REST Web-Service,
JSONParser Class is,
package com.anvinsolutions.digicob_custmate;
import…

Akhil T Mohan
- 193
- 1
- 1
- 14
-3
votes
1 answer
Create dynamic view in android?
In my application I am receiving JSON multiple forms like this:
"forms":[ {"name": "form1","title": "First Form","order": 1,
"fields":[
"name": "firstName","type": "InputText", "maxLength": "10",
…

Tefa
- 328
- 1
- 4
- 15
-3
votes
1 answer
How to split value from json String?
I want to split values of json String into multiple string. I am getting values in "images" thats is (image1, image2, image3) i want to split this string into 3 different strings, I am not getting how i acheive this
protected void status() {
…

Kriti Jain
- 63
- 2
- 10
-3
votes
1 answer
How to parse multilevel json data in android
I have multilevel json data and i want to parse into json array.but its throw exception:
> -E/Error JSONException: Value [{"name":"Desktop","children_lv3":[{"name":"Dell
>…

Anand Jain
- 2,365
- 7
- 40
- 66
-3
votes
1 answer
Android - If else condtion doesn't work
I have a table in my localhost where I have initally set the Rating(//Column name) value to 0 to all the items.I want to run a loop.But inspite of updating in column it runs else loop.
if(String.valueOf(StrRating).equals("0")){
…
user4051583
-3
votes
2 answers
Getting id from from JSON objects inside onItemClickListener
First of all I use volley library for my post request. In this case I retrieve as response from the server the following json format.
{"status":"success","message":"Teams without a league have been
found.",
"teams":[{"ID":"31","team_name":"A…

Theo
- 3,099
- 12
- 53
- 94
-3
votes
1 answer
Index out of bound exception in Android app
Hi in my android application I need to display a some details in list view based upon the date. When u open the application it get get data for the last Ten days and display that. This application was working fine in few days back but now its…

Encipherer
- 411
- 7
- 23
-3
votes
1 answer
java.lang.String cannot be converted to JSONObject
@Override
protected JSONObject doInBackground(String... params) {
String path = null;
String response = null;
HashMap request = null;
JSONObject requestJson = null;
DefaultHttpClient httpClient = null;
…

John David
- 334
- 3
- 25