allow objects with arrays to be sent as json in requests

Had a data structure that looked like:

```{'restofworld': ['app', 32]}``` and requests didn't like it.

This fixes, but I am not sure it is correct.
Tech. arrays are objects