allow objects with arrays to be sent as json in requests