-2

enter image description here

I am trying to call a API where i need to pass task name and time in array and project name and date, Also data should be pass in array. I have tried so many time but did not get desired output. Kindly help me with this. I am attaching screen shots of postman and also JSON Viewer, So you guys can see everything and answer me properly. Thank you guys in advance for help me

enter image description here

I have tried but didnt get any output

Mehul Solanki
  • 1,147
  • 11
  • 15

1 Answers1

0

Maybe the data class you are creating is wrong. Using the JSONTOKOTLIN plugin, give it the desired json to create it by itself

Hossein S
  • 1
  • 1
  • I have treid already this but it didn't worked. Actually I have tried to add all data in array list but when i send data on server Data has send with entire Class name so due to this Issue the app has been crashed I am sending you Log print so you can understand what is the problem. log print "[MyTasks(project_name=Projects, tasks=[com.example.timeleavelogs.models.tasksmodel.TasksAndTimeModal@83dec71])]" – i_developer Aug 21 '23 at 06:57
  • As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Aug 28 '23 at 13:57