I am using volley for json parsing. I want to send some data using POST to server side. I am trying to send .Now can any one tell me that how can i send filter array to server?
Following is my snippet code. i tried also Hashmap and Jsonobject. but getting this error.
Error :
org.json.JSONException: Value  at Data of type java.lang.String cannot be converted to JSONObject
Format
{
    "typeName": "MANUFACTURER",
    "typeId": 22,
    "cityId": 308,
    "sortBy": "productname",
    "sortOrder": "desc",
    "filter":[
                {
                    "filterId":101,
                    "typeName":"CAT_ID",
                     "filterId":102,
                    "typeName":"CAT_ID"
                }
             ]
}
For Code Check pastie
 
     
     
     
     
     
    