我想通过一个arraylist到PHP做一些操作。当我测试与邮递员我得到以下resoponse ..
{“correct_answers”:“2”,“total_question”:“5”,“消息”:“太棒了!你需要得分至少60%标记的移动一个新的水平。“” message_percentage“:” 40" ,‘saved_message’:‘成功’}
但是,当我尝试发送请求我收到此错误。 。
java.lang.IllegalStateException:预期的BEGIN_OBJECT,但是在第1行第1列处有STRING $
这是我的API接口
@POST( “questions.php”)
@FormUrlEncoded
Call<QuestionResult> correctQuestionData(@Field("tag") String tag, @Field("str_question_answer[]") ArrayList<QuestionAnswers> str_question_answer,
@Field("student_id") String student_id, @Field("level") String level);
请出示 “QuestionResult” 级。我认为你犯了错误。 –