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.
don't really expect us to be sending functions in our requests. i can rename the function.