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
Send only specific JSON value in POST request using Volley in Android
I am using volley in my application.I need to POST one form to Server using Volley.The form contains some mandatory fields.If that fields are posted in JSON form, it is submitted successfully otherwise error is thrown.
This is json format I need to…

Satyam Gondhale
- 1,415
- 1
- 16
- 43
-2
votes
1 answer
Json formation Getting corrupted
I am using JSONObject to create a new json in my Android Application.
But I am experiencing a strange issue where I am observing that my json field names are getting replaced by letters like "a" : "value " , "b " : "value_1" , "c" : value2 "
This…

Raulp
- 7,758
- 20
- 93
- 155
-2
votes
2 answers
How to display images from web service?
I wanted to fetch the images from the URL but the whole code is clean but there is no output i am getting. what should i do.
I used the whole code from this…

Tabish Shaikh
- 1
- 1
- 2
-2
votes
4 answers
how to remove a word inside json url by the code?
I heve a json url:
http://wach.ma/mobile/item.php?id=15236
i want to parse the content and show it in a recyclerview.
everything is good, but when i run it this error happens:
Value Array of type java.lang.String cannot be converted to…

Hamiprogrammer
- 47
- 1
- 9
-2
votes
5 answers
android get json response
Hey guys i am new to Android networking concepts.I want to send username,password,imei number and location to the php server from android app.I am done my sending part.now my question is how to receive the response.i want to get the status (1 or 0)…

karthi keyan
- 83
- 1
- 11
-2
votes
2 answers
How to parse multiple Json values in Android?
I tried doing it multiple times using Volley library.
Link for JSON values: here
My android code to parse the values: here
public class GetUSGSjson extends AppCompatActivity
{
GridView jsonGridView;
ListView jsonListView;
Button…

Harshit Sahni
- 27
- 10
-2
votes
2 answers
org.json.JSONObject$1 cannot be converted to JSONObject error while parsing json string
For parsing json i use JSONArray and JsonObject:
protected void parseJson()
{
JSONObject object=null;
try {
object=new JSONObject(json);
myArray=object.getJSONArray(MY_ARRAY);
Log.e("Array…

Manish
- 234
- 2
- 13
-2
votes
1 answer
android use HttpPost and StringEntity
It's my first project. When i use Post,I can't send the data to server.
Here is my code:
JSONObject json = new JSONObject();
try
{ json.put("_username", mUsername);
json.put("_password", mPassword);
…

Ling QI
- 17
- 6
-2
votes
4 answers
Problems converting JSONObject to JSONArray
so my application have one small error preventing me from doing currency conversion.
03-01 03:56:05.810 18853-18870/com.example.justin.currencyconverter20 D/JSON Parser: result:…

OnaniMaster
- 9
- 3
-2
votes
1 answer
Cannot resolve constructor JSONobject (Integer)
I'm trying to make a program that will display multiple titles with pictures under them. I looked over stackoverflow, and can't get any of the suggestions to work for me. All my errors are within private void ShowJSON
package…

Boghy Dickenson
- 193
- 1
- 1
- 9
-2
votes
1 answer
Android Json and AsyncTask Error
i had written an code that sends data from the android application to the database using JSON Form but i am having some errors when it sends.
this is the class for registration:
package com.subhi.tabhost;
import android.app.AlertDialog;
import…

Subhi
- 322
- 3
- 11
-2
votes
3 answers
JSON mplimentation on ListView
I have the following JSON response:
{
"success":1,
"message":"Post Available!",
"posts":[
{
"id":"1",
"name":"hi",
"phone":"123",
"department":"and",
"days":"1",
…

Atif Patel
- 9
- 5
-2
votes
2 answers
android: cannot resolve the symbol "urls"
I am new to android to programming and i am following the code from the youtube video but i am getting error "cannot resolve the symbol "urls"" for " HttpGet httppost = new HttpGet(urls[0]);".I found out through research that the HttpGet is not…

Insane Assassin
- 29
- 5
-2
votes
1 answer
Android Gradle build error Need to connect with database
Do i need to add any jar file. or need to and any dependencies
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "21.1.2"
defaultConfig {
minSdkVersion 14
targetSdkVersion 23
…

user000
- 29
- 2
- 7
-2
votes
1 answer
How to parse the xml wrapping json
Can Any one tell me How to parse the following

Coas Mckey
- 701
- 1
- 13
- 39