Add support for sending NSArray when sendParametersAsJSON is set to YES.