org.json.JSONException: JSONObject["answers"] not found. 2016-09-28T16:10:23.455592+00:00 app[web.1]: at org.json.JSONObject.get(JSONObject.java:475) 2016-09-28T16:10:23.455592+00:00 app[web.1]: at org.json.JSONObject.getJSONArray(JSONObject.java:622) 2016-09-28T16:10:23.455593+00:00 app[web.1]: at com.employmeo.objects.Question.fromJSON(Question.java:267)

GitHub | sridharkaza | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Fix error in "persist survey" - error due to no "answers" associated to open ended question

    GitHub | 7 months ago | sridharkaza
    org.json.JSONException: JSONObject["answers"] not found. 2016-09-28T16:10:23.455592+00:00 app[web.1]: at org.json.JSONObject.get(JSONObject.java:475) 2016-09-28T16:10:23.455592+00:00 app[web.1]: at org.json.JSONObject.getJSONArray(JSONObject.java:622) 2016-09-28T16:10:23.455593+00:00 app[web.1]: at com.employmeo.objects.Question.fromJSON(Question.java:267)

    Root Cause Analysis

    1. org.json.JSONException

      JSONObject["answers"] not found. 2016-09-28T16:10:23.455592+00:00 app[web.1]: at org.json.JSONObject.get(JSONObject.java:475) 2016-09-28T16:10:23.455592+00:00 app[web.1]: at org.json.JSONObject.getJSONArray(JSONObject.java:622) 2016-09-28T16:10:23.455593+00:00 app[web.1]: at com.employmeo.objects.Question.fromJSON(Question.java:267)

      at com.employmeo.objects.SurveyQuestion.fromJSON()
    2. com.employmeo.objects
      Survey.fromJSON
      1. com.employmeo.objects.SurveyQuestion.fromJSON(SurveyQuestion.java:119)
      2. com.employmeo.objects.Survey.fromJSON(Survey.java:214)
      2 frames