google / volley

https://google.github.io/volley
Apache License 2.0
3.38k stars 754 forks source link

Allowing both objects and arrays to be posted #421

Closed paulsmithkc closed 3 years ago

paulsmithkc commented 3 years ago

These changes allow either a JSON object or array to be posted the server.

See #406 and #420

jpd236 commented 3 years ago

See https://github.com/google/volley/pull/420#issuecomment-873230155 for details on why we don't want to make this part of Volley for now, and #419 for the workaround if you need to post arbitrary JSON strings in a JSON request.