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)

Solutions on the web1120

  • 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)
  • Value <br of type java.lang.String cannot be converted to JSONObject 10-29 04:00:41.531: D/dalvikvm(2110): GC_FOR_ALLOC freed 216K, 6% free 5001K/5280K, paused 85ms, total 88ms 10-29 04:00:41.541: W/System.err(2110): at
  • via Stack Overflow by Brad
    , 1 year ago
    No value for null{"ErrorMessage":"","IsSuccess":true,"ReturnValue":2} 05-20 00:09:06.856: WARN/System.err(526): at org.json.JSONObject.get(JSONObject.java:354)
  • Stack trace

    • 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(SurveyQuestion.java:119) at com.employmeo.objects.Survey.fromJSON(Survey.java:214)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.