-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
POST Request type array #9
Comments
Hi DroidNetwork does not handle JSON objects directly so you have to use jsonArray.toString(). Since you are then posting a string I don't understand why it doesn't work. Have you tried to post data with a REST client to verify that the web service accepts the JSON data? BR |
Hey Martin, Thank you for taking the time to respond. I just checked and the REST client does not take JSON. It has to be URL Encoded. Does your Framework support this type of functionality? If not, I'm assuming Java/Android will provide the functionality. I'll have to do some digging as I'm an iOS developer and Java/Android is new to me. BTW, I really like your networking framework. Simple to use. Keep up the good work. Thanks, Levi On Mar 6, 2014, at 11:02 AM, Martin Dahl [email protected] wrote:
|
Strange. The parameters are url encoded by DroidNetworking. If you prefer you can use the new method |
Hey is it possible to POST a parameter of type array? I'm not getting any response when I try to post a JSONArray with JSONObjects. I've also tried an ArrayList of HashMaps.
Example of params:
//params
HashMap params = new HashMap();
params.put("fromDate", "2014-03-20");
params.put("toDate", "2014-03-25");
params.put("rooms", jsonArray);//also tried jsonArray.toString();
Thank you!
The text was updated successfully, but these errors were encountered: