com.squareup.moshi.JsonDataException: Expected BEGIN_ARRAY but was BEGIN_OBJECT at path $

GitHub | thanh-taro | 3 months ago
  1. 0

    GitHub comment 5#241672549

    GitHub | 3 months ago | thanh-taro
    com.squareup.moshi.JsonDataException: Expected BEGIN_ARRAY but was BEGIN_OBJECT at path $
  2. 0

    Custom converter to subclass with Moshi

    Stack Overflow | 1 year ago | Defuera
    com.squareup.moshi.JsonDataException: Expected a name but was BEGIN_OBJECT at path $.user
  3. 0

    GitHub comment 31#174100232

    GitHub | 10 months ago | bjdodson
    com.squareup.moshi.JsonDataException: Expected BEGIN_ARRAY but was STRING at path $.ClusterKeys.ONE
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Android: failing to find adapter for a 'GenericArrayTypeImpl' type

    GitHub | 10 months ago | bjdodson
    com.squareup.moshi.JsonDataException: Expected BEGIN_ARRAY but was STRING at path $.Keys.jesse
  6. 0

    Generated JsonAdapter.Factory doesn't handle nulls

    GitHub | 7 months ago | ktchernov
    com.squareup.moshi.JsonDataException: Expected BEGIN_OBJECT but was NULL at path $.data

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.squareup.moshi.JsonDataException

      Expected BEGIN_ARRAY but was BEGIN_OBJECT at path $

      at com.squareup.moshi.JsonReader.beginArray()
    2. com.squareup.moshi
      JsonAdapter.fromJson
      1. com.squareup.moshi.JsonReader.beginArray(JsonReader.java:346)
      2. com.squareup.moshi.ArrayJsonAdapter.fromJson(ArrayJsonAdapter.java:53)
      3. com.squareup.moshi.JsonAdapter$1.fromJson(JsonAdapter.java:68)
      4. com.squareup.moshi.JsonAdapter.fromJson(JsonAdapter.java:33)
      5. com.squareup.moshi.JsonAdapter.fromJson(JsonAdapter.java:37)
      5 frames
    3. com.e4bros.thodia
      SignInPresenter$6.onResponse
      1. com.e4bros.thodia.signin.SignInPresenter$6.onResponse(SignInPresenter.java:255)
      2. com.e4bros.thodia.signin.SignInPresenter$6.onResponse(SignInPresenter.java:213)
      2 frames
    4. Android-Volley Library
      ExecutorDelivery$ResponseDeliveryRunnable.run
      1. com.android.volley.toolbox.StringRequest.deliverResponse(StringRequest.java:67)
      2. com.android.volley.toolbox.StringRequest.deliverResponse(StringRequest.java:30)
      3. com.android.volley.ExecutorDelivery$ResponseDeliveryRunnable.run(ExecutorDelivery.java:99)
      3 frames
    5. Android Platform
      ActivityThread.main
      1. android.os.Handler.handleCallback(Handler.java:739)
      2. android.os.Handler.dispatchMessage(Handler.java:95)
      3. android.os.Looper.loop(Looper.java:135)
      4. android.app.ActivityThread.main(ActivityThread.java:5254)
      4 frames
    6. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    7. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
      2 frames