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
0
votes
3 answers

Serializing object with System.Text.Json setting ReferenceHandler to ignore not working in .NET 7

I'm trying to serialize an object in ASP.NET Core MVC Web API into a JSON before returning it to the user. The object is from an EF Core database, and the controllers are generated using scaffolding with some include properties I've added which I'd…
0
votes
0 answers

JSONException: No value for myRating even when value exist on same node

My app was working fine but suddenly it start giving me erros JSONException: No value for myRating. I know it's means the value doesn't exist on JSON but i cross check dozens times that myRating exist in JSON i received and i am also able to get…
Ritu
  • 518
  • 2
  • 12
  • 35
0
votes
0 answers

NestJS BadRequestException - Unexpected end of JSON input

Starting from few days ago, I've started to receive BadRequestException with Unexpected end of JSON input This is the trace from NestJS: mapExternalException(err) { switch (true) { // SyntaxError is thrown by Express body-parser when…
zhuber
  • 5,364
  • 3
  • 30
  • 63
0
votes
1 answer

Google Scripts Error: GoogleJsonResponseException: API call to sheets.spreadsheets.batchUpdate failed with error: Must specify at least one request

I am trying to run a Google Script to delete unused filter views. I found the script on Stackoverflow function delUnusedFilterViews() { var ssId = SpreadsheetApp.getActive().getId(); var sheetName = SpreadsheetApp.getActiveSheet().getName(); …
0
votes
2 answers

org.json.JSONException: Expected literal value at character 85

This is my json string : { gateway=vary, gateway_text=xyz, gateway_data=, start=17/02/2022 06:23:45, end=17/03/2022 06:23:45, promo_time=17/03/2022 06:23:45, in_process_canceled=0.0, id=817957632 } When I am trying to convert it to JSON…
Nikitha
  • 49
  • 5
0
votes
1 answer

When retrieving json array from empty sharedpreference, java.lang.String cannot be converted to JSONObject exception comes

W/System.err: org.json.JSONException: Value Responsemodel$Banner@b494bac at 0 of type java.lang.String cannot be converted to JSONObject output: [Responsemodel$Banner@e5af3c3, Responsemodel$Banner@ed16440, Responsemodel$Banner@5335f79,…
Mohit Singh
  • 1,402
  • 1
  • 10
  • 19
0
votes
1 answer

Using scraping api throw error while scraping amazon product details?

I tried to scrape amazon product details using scraping api but it shows me following error: "message": "Error: getaddrinfo ENOTFOUND api.scrapapi.com", "cause": { "errno": -3008, "code": "ENOTFOUND", "syscall": "getaddrinfo", "hostname":…
user15422497
0
votes
1 answer

Qpython OL: type org.json.JSONArray cannot be converted to JSONObject in makeIntent()

I am trying to make an intent using androidhelper in Qpython OL with the code below: action = "org.escpos.intent.action.PRINT" packagename = "com.loopedlabs.escposprintservice" # target application data = data # convert data to PDF byte array…
0
votes
2 answers

org.json.JSONException: Value HTTP of type java.lang.String cannot be converted to JSONObject

I'm pretty new to Json parsing, and working with API's so I have little idea on why this is happening. It would be greatly appreciated if you could help solve the issue. Now onto the problem. While creating my Springboot application I was getting a…
SirDingle
  • 3
  • 3
0
votes
0 answers

com.fasterxml.jackson.core.JsonParseException: Unexpected character ((CTRL-CHAR, code 137)): expected a valid value

I am using google drive rest api to fetch data from drive to my app. Whenever I tried to fetch the data into inputStream, got this error: W/System.err: com.fasterxml.jackson.core.JsonParseException: Unexpected character ((CTRL-CHAR, code 137)):…
Simon Das
  • 79
  • 1
  • 4
0
votes
1 answer

JSON Exception value connection of type java.lang.String cannot be converted to JSONArray

PHP code :(DBadapter.php) query("select id,name,quantity from product"); …
Omkar Ghurye
  • 195
  • 1
  • 8
0
votes
1 answer

E/Volley: com.android.volley.ParseError: org.json.JSONException: Value {"results":[{

I am trying to get data from a JSON from the Spoonacular API and display it is a list on a RecyclerView. However, I keep getting the error below when running the program. I have created a Meal class to get and set the information from the JSON file…
dmcm
  • 1
  • 2
0
votes
1 answer

JSON Exception : org.json.JSONException: JSONObject["Name"] not found

I am trying to extract "Automation Admin" from the below JSON output I am getting but it gives me JSONObject["Name"] not found exception. Below is the code snippet. I tried replacing ownerName =…
Afsal
  • 404
  • 3
  • 7
  • 24
0
votes
2 answers

handle JSONException from HttpResponse

I have a method which needs to act based on response from an other service. The expected response is {"status":"success"} I have 2 methods in my java code. String getResultParam( HttpUriRequest request ) { JSONObject res = getResult( request ); …
pwecee
  • 1
  • 1
0
votes
3 answers

A possible object cycle was detected which is not supported

I know there are question and answers with that particular problem here on so, but my problem is little unique (I guess). Here is my model class: public class RoleMaster { [Key] [Required] public int Id { get; set; } [Required] …
Sanjay Kumar
  • 198
  • 2
  • 3
  • 12