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
-1
votes
1 answer
Which api is good for android and what are different types?
I have heard about json and xml (SOAP) services , in fact there are SOAP and restful services and we can get reply in json format and xml format. now let me tell you what My real question is but after a little background of the story.
I am using a…

Coas Mckey
- 701
- 1
- 13
- 39
-1
votes
1 answer
Can't seem to connect my android to my php server
I am new to android development and i've been working on this project to create a login function. But I seem to have problems retrieving the info from my server. Cant get my code to work.
Login.java
package com.httpkhronolog.khronolog;
import…

Ka Hing
- 3
- 1
-1
votes
1 answer
How to pass value and get json data in android?
I am new in android, I want to fetch json data into my device.but when ever i am trying to pass value ,i am getting an unknown error in html format.Even i have not used any html tag in my php code.
public class Messages2 extends Activity {
…

Dhirendra Kumawat
- 133
- 1
- 11
-1
votes
1 answer
How to pass my data one activity to another activity
[{
"name":"pawan",
"image":"HTTP://example.com/Pavan/errorlog.png",
"age ":"24",
"address":"Pawan",
"town":"PAWAN"
}]
I am passing all values, in first Activity I am displaying 3 fields, in second activity I want to display all…

pavan kumar
- 5
- 7
-1
votes
1 answer
How to design layout of JSON Array inside another JSON Array in Android
I want to set Json array data inside another json array data into XML Layout but how is design I am new in android developing Please help me solve this problem my layout is here:-

Anand Jain
- 2,365
- 7
- 40
- 66
-1
votes
1 answer
How can i send a json array to webserver using volley?
I can receive a json array but how can i send a json array using volley?
JsonArrayRequest arrayReq = new JsonArrayRequest(URL,
new Listener() {
}

munna ss
- 194
- 1
- 2
- 11
-1
votes
1 answer
Parsing large xml files
Hiii. I need some help parsing this really big xml document. More specifically the bible.
Which would be the most efficient way of doing this? I've tried parsing it with standard xml tools but it takes too much time or simply crashes. I've also…

Jose Maria Landa
- 415
- 4
- 15
-1
votes
1 answer
Android App Crashes if no internet during server connection
I am calling a url to fetch data and insert in my database. I have provided a no internet check. If I open the app without internet connection, it works fins, a pop up comes.. But if I connect to the url when I have internet and the internet goes in…

Prakhar
- 710
- 6
- 24
-1
votes
3 answers
how to connect android to restful api
I'm making an app which let people login, sign in, sign up, write something and save it to database.
So I decided to chose Restful Api with Slim Framework. I publish it in my host and test by extension of google chrome call Advanced Rest Client. …

kien.nt
- 81
- 2
- 12
-1
votes
5 answers
Exception in saving JSON
I am trying to save the response from server but I am getting exception..
This is the response:
[
{
"MediEazyInvoiceitemsList": [
{
"Id": 1,
"MediEazyInvoiceId": 1,
"ProductId": 1,
…

Prakhar
- 710
- 6
- 24
-1
votes
1 answer
Android: org.json.jsonobject values
I'am fetching the data from the server and storing in my android application, but i get exception.
error message: JSONArray cannot be converted to JSONObject.
@Override
protected void onPostExecute(Boolean result) {
super.onPostExecute(result);
…

Robert Banyai
- 1,329
- 12
- 14
-1
votes
1 answer
It is impossible to parse json (Ion)
I use my library Projects enter link description here
The author gives an example:
public static class Tweet {
public String id;
public String text;
public String photo;
}
public void getTweets() throws Exception {
…

Valera Valerianov
- 247
- 1
- 3
- 14
-1
votes
2 answers
Android : Data is not sending to server - JSON contains null value
This is the format of data I'am getting from server.
[
{
"rid":"1",
"srid":"0",
"estimated_value":"100000",
"expected_close_date":"2014-11-22",
"sid":"2",
"others":null
},
{
"rid":"1",
"srid":"6",
"estimated_value":0,
…

user3764346
- 129
- 2
- 5
- 15
-1
votes
1 answer
How can i get JSon data from url on Android?
the json looks like this:
[{"id":"1","name":"Mihai","email":"mihai@yahoo.com","password":"1234","phone":"765889345"},{"id":"2","name":"Robin","email":"robin@yahoo.com","password":"1234","phone":"765453434"}]
the code
// Json
…

dodo
- 38
- 12
-1
votes
2 answers
android- How to avoid caching on json
It's a very big problem and it's really bothering me .
I've a webservice that I get my data from it via josn , I need my data to be update .
The problem is this ,I open my application , it connects to webservice and it gets very old data , I remove…

mohsen
- 451
- 2
- 6
- 15