Questions tagged [jsonexception]

Java Exception that is thrown to indicate a problem with the JSON API, as attempts to parse or construct malformed documents, use of null as a name or type mismatches on lookups.

171 questions
-3
votes
3 answers

Error:Json parsing error: Value connection of type java.lang.String cannot be converted to JSONObject

i am not getting Json response in my listactivity.i tried everything but its not showing the result..in logcat i got successful connection and data also i can see..but in my listview its says this exception. here is my code public class TypeMenu…
z.al
  • 279
  • 1
  • 6
  • 21
-3
votes
2 answers

Getting Unterminated object exception for JSON array

I am getting an array of JSON from server. But I am trying to access it I am getting the Unterminated object exception. I checked the output for any comma missed or wrong syntax but still not working. JSON array [ { "cust_id": "8", …
Sid
  • 2,792
  • 9
  • 55
  • 111
-3
votes
3 answers

Android JSONEXCEPTION: No value for temp

Im working on the udacity android tutorial building the sunshine app , i created a refresh button to update the weather info . Its not updating any information when clicked, i just get a JSONException. Here is the code:_ For the forecast…
-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

Getting no value from JSON array in Android

I have a weird problem and I hope that you can help me with it.. The problem is as follows: I have created a javacode to resolve a query from JSON but I can't parse it to a String... I also tried to get the String 0, but that also does not…
Kjell
  • 432
  • 4
  • 11
-4
votes
3 answers

JSON parsing error, android?

I have the following JSON {"DistributorDealerList": {[{"Id":2, "Name":"Distributor1", "Dealer": [{"Id":"1", "Name":"Dealer1"}, {"Id":"2"," Name":"Dealer2"}]}, {"Id":4,"Name":"Distributor2", "Dealer": [{"Id":"3", "Name":"Dealer3"}]}]} When I am…
WISHY
  • 11,067
  • 25
  • 105
  • 197
1 2 3
11
12