0

I don't know how to configure JSON Array in JSON Object and send JSON data to web service like this, please help me.

{
"Id":"1",
"UnitName":"-", 
"UnitCount":"1",
"UnitAmount":"1",
"CustomerId":"206", 
"PersonelId":"1", 
"CustomerCode":"PERSONEL-007", 
"OrderCode":"147",
"ItemList":[{

            "StockId":1,
            "Count":1,
            "Amount":1,
            "TotalAmount":1,
            "Discount1":"0",
            "Discount2":"0",
            "Discount3":"0",
            "Discount4":"0",
            "DiscountTotal":"0",
            "TaxPercent":"18",
            "TaxAmount":"1.18",
            "GrandTotal":"1.18"
}]
}
5
  • you need to follow this tutorial code.tutsplus.com/tutorials/… Commented Mar 26, 2018 at 14:19
  • Get the basics clear first. Then read this page before asking question. Commented Mar 26, 2018 at 14:24
  • 1
    Possible duplicate of Sending JSON in POST request with Retrofit2 Commented Mar 26, 2018 at 15:05
  • Sorry, @Manmohan_singh my bad. I will pay attention after that. Commented Mar 26, 2018 at 19:54
  • Thanks, vikas and Henrique but how can I put json array in the json object? Commented Mar 26, 2018 at 19:56

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.