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.
Questions tagged [jsonexception]
171 questions
1
vote
2 answers
Get JSON string from Android JSONException
My Volley request can come back as either JSONArray (valid) or JSONObject (error message) and in order to correctly display the error response, I want to parse the failed JSONArray string as JSONObject. It appears that JSONException objects wrap the…

MechEngineer
- 1,399
- 3
- 16
- 27
1
vote
2 answers
Android Facebook Graph API JSONException 'No value for email'
I am trying to integrate Facebook android sdk using this link. Everything runs perfect except I am getting one JSONException while trying to get email for logged user.
Below is the logcat I get,
07-28 16:22:37.420: W/System.err(15793):…

snehal_penurkar
- 273
- 1
- 3
- 15
1
vote
0 answers
Error on json parser array without name android
I keep getting the error with my Json Parser. Error parsing data org.json.JSONException: End of input at character 0 of. Couldn't get any data from the url. I have permitted the the app to access the internet in the main. Can someone please help me…

mcdubs
- 11
- 2
1
vote
1 answer
VkApi. JSONException
I want to display my friend's list.I don't understand why String cannot converted to json. I understand that error in 152(MainActivity)
JSONObject o = new JSONObject(response.toString());
but i don't know why...
JSONException: Value…

VdovinN
- 51
- 7
1
vote
3 answers
Volley never returns VolleyError or explains why there is an exception
With the Volley libraries, I extended the Request object to implement GSON serialization. I then extended that new object for how I want to do some of my PUT requests. This is the first object for the GSON serialization:
@Override
protected…

CQM
- 42,592
- 75
- 224
- 366
1
vote
2 answers
JSONObject parsing error when there is no value
I have a JSON which looks like this:
{
"notifications": {
"0": {
"id": "27429",
"uID": "6967",
"text": "Text 1"
},
"1": {
"id": "27317",
"uID": "6967",
"text": "Text 2"
},
"2": {
…

Anupam
- 3,742
- 18
- 55
- 87
1
vote
4 answers
parsing URL in String from JSON
1) I've got a JSON file:
{
"serverURI":"http://localhost:8080/PocketUNI_API/serverURLs",
"newsURI":"http://localhost:8080/gateway/rss/rss.xml",
"modulesURI":"http://localhost:8080/PocketUNI_API/modules"
}
2) I need to get URLs on Java…

exomen
- 355
- 2
- 6
- 20
1
vote
1 answer
net.sf.json.JSONException
I converted a normal JavaScript array (which is in one JSP page), did a JSON.stringify() to that array and passed it across to another JSP as a parameter. In the other JSP, I'm reading it using request.getParameter().
Now, while converting the…

AlwaysALearner
- 6,320
- 15
- 44
- 59
1
vote
2 answers
User Registration using Slim Rest server and android client
I am working on a simple app where I sign up new users.
- I am using SLIM PHP framework with MySQL on apache local host
- I have a MySQL database with table called tbl_user. I have tested my SLIM implementation using CURL
- On Client side, I have…

vikas sharma
- 161
- 4
- 13
1
vote
2 answers
JSONException: java.lang.String cannot be converted to JSONObject
I know this question has been asked a number of times but I didn't find any relative answer of my question.
I am trying to read json data from asset folder, but I'm getting following exception while getting
I searched number of stuffs but didn't…

Sandip Armal Patil
- 6,241
- 21
- 93
- 160
1
vote
1 answer
How do I display the JSON results from UrbanDictionary in my app?
I'm working on an app that simply has to go out to UrbanDictionary and return the results of a word search in JSON format...then display it in an Android project.
Here is my code in its entirety:
package org.twodee.mitchemc.webapi;
import…

iMatthewCM
- 449
- 2
- 10
- 21
1
vote
0 answers
Filter out incorrect JSON before parsing
I'm trying to parse some JSON that is being sent to me as an API response however for some reason it keeps giving it to me with a "one" at the beginning even though the rest is perfectly fine e.g.
"one"{"position":"0", "level":"0", "is_active":"0",…

Sam Jackson
- 608
- 1
- 5
- 13
0
votes
0 answers
ASP.NET Json Exception
We have a group project and when I clone repistory from my teammate I have this error. This project works on everyone in the team but me.
JsonException: '<' is an invalid start of a property name. Expected a '"'. Path: $ | LineNumber: 2 |…
0
votes
1 answer
Poco::JSON::Parser throws Poco::JSON::JSONEception error
I am trying to parse a JSON object with poco parser. I am running into a Poco::JSON::JSONException at xxx memory location. I don't understand, what am I supposed to do to get past this?
Here is the code snippet:
//Run API Get request, this…

rawmud
- 70
- 9
0
votes
0 answers
LARAVEL API org.json.JSONException: Value
I keep receiving a JSONException error to my code I am trying to fetch a post method that has a token. I already tried to run the laravel api in insomnia and it works successfully but when I use it for mobile i received a JSONException…