search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Problem with an org.daypilot.json.JSONException:

Asked by Jhon
8 months ago.

When i try to do
Dps dps=new Dps() ;
dps.process(request, response);
i have org.daypilot.json.JSONException: A JSONObject text must begin with '{' at character 0

Answer posted by Dan Letecky [DayPilot]
8 months ago.

It looks like you are reading the input stream before passing it to process(). In that case, it's necessary to reset the position in the stream to 0.

Something like this might also happen if you try to open the backend API URL (which expects the JSON message in the body) directly in the browser.

This question is more than 3 months old and has been closed. Please create a new question if you have anything to add.