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

Problem with an org.daypilot.json.JSONException:

Asked by Jhon
14 days 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]
12 days 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.

New Reply
This reply is
Your name (optional):