android - How can i post this by volley -


"working_days": [ { "day_id": 2, "from": 11, "to": 22 }, { "day_id": 3, "from": 10, "to": 23 } ],

that 's part of script need post i'm using volley gson can help

{     "userid": 2,     "token": "bdajkvnbadkvda1ad1fadf4ad5f1da5",     "name": "center 123",     "address": "12 ramsis str.,",     "lat": "30.31194946131",     "long": "30.31194946131",     "location": "assute",     "phone": "032365653232",     "owner_name": "ahmed",     "owner_number": "164956465464",     "registry_number": "2161312",     "taxation_card": "2326-66321",     "contract_code": "1211132",     "remark": "beside phrmacy",     "working_days": [        {           "day_id": 2,           "from": 11,           "to": 22         },          {           "day_id": 3,           "from": 10,           "to": 23         }     ],     "images": [       {        "url": "uploads/center/s51fdf5df1d5.png"        },        {         "url": "uploads/center/s5d1f6d645616.png"         }     ]    }   

use www.jsonschema2pojo.org create java objects , parse gson library: http://www.vogella.com/tutorials/javalibrary-gson/article.html


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -