ControllerTestCase::createJsonRequest sets content as an empty string if content is an empty array

## ControllerTestCase::createJsonRequest sets content as an empty string if content is an empty array

`$this->createJsonRequest('post', ['content' => []])` should create a request whose content is '[]', but instead it creates one whose content is ''.