post array inside json object in retrofit?

Viewed 3205

I m working with retrofit and sending to request to server via post method i am getting response currectly for this json see this is post i m sending to server .

adreess class for post i m using this object

{
     "years":"1855",
     "months":"6",
     "skills":1
}

now i have to implement array inside object in skills how to post this

{
    "years":"1",
    "months":"6",
    "skills":["1","2","3"],
}

how to get array inside object in retrofit i m using interface like this

Call<AddressResponce> address(@Body Adreess adreess);
3 Answers
Related