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 | 5 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

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

    GitHub | 5 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