{"action":"created","issue":{"url":"https://api.github.com/repos/Codeception/Codeception/issues/1992","labels_url":"https://api.github.com/repos/Codeception/Codeception/issues/1992/labels{/name}","comments_url":"https://api.github.com/repos/Codeception/Codeception/issues/1992/comments","events_url":"https://api.github.com/repos/Codeception/Codeception/issues/1992/events","html_url":"https://github.com/Codeception/Codeception/issues/1992","id":82825094,"number":1992,"title":"Behavior in REST when POST JsonSerializable and __toString","user":{"login":"andersonamuller","id":1681800,"avatar_url":"https://avatars.githubusercontent.com/u/1681800?v=3","gravatar_id":"","url":"https://api.github.com/users/andersonamuller","html_url":"https://github.com/andersonamuller","followers_url":"https://api.github.com/users/andersonamuller/followers","following_url":"https://api.github.com/users/andersonamuller/following{/other_user}","gists_url":"https://api.github.com/users/andersonamuller/gists{/gist_id}","starred_url":"https://api.github.com/users/andersonamuller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andersonamuller/subscriptions","organizations_url":"https://api.github.com/users/andersonamuller/orgs","repos_url":"https://api.github.com/users/andersonamuller/repos","events_url":"https://api.github.com/users/andersonamuller/events{/privacy}","received_events_url":"https://api.github.com/users/andersonamuller/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-05-30T14:26:33Z","updated_at":"2015-05-30T18:09:52Z","closed_at":null,"body":"Because of dcfc8e3#diff-d8e5babfee3fd0e8675337cf8ff58b50, when I post/put/patch a `JsonSerializable` object that also implements a `__toString` method passing a custom `Content-Type` in headers, the request is always sent without body."},"comment":{"url":"https://api.github.com/repos/Codeception/Codeception/issues/comments/107073020","html_url":"https://github.com/Codeception/Codeception/issues/1992#issuecomment-107073020","issue_url":"https://api.github.com/repos/Codeception/Codeception/issues/1992","id":107073020,"user":{"login":"Naktibalda","id":395992,"avatar_url":"https://avatars.githubusercontent.com/u/395992?v=3","gravatar_id":"","url":"https://api.github.com/users/Naktibalda","html_url":"https://github.com/Naktibalda","followers_url":"https://api.github.com/users/Naktibalda/followers","following_url":"https://api.github.com/users/Naktibalda/following{/other_user}","gists_url":"https://api.github.com/users/Naktibalda/gists{/gist_id}","starred_url":"https://api.github.com/users/Naktibalda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Naktibalda/subscriptions","organizations_url":"https://api.github.com/users/Naktibalda/orgs","repos_url":"https://api.github.com/users/Naktibalda/repos","events_url":"https://api.github.com/users/Naktibalda/events{/privacy}","received_events_url":"https://api.github.com/users/Naktibalda/received_events","type":"User","site_admin":false},"created_at":"2015-05-30T18:09:52Z","updated_at":"2015-05-30T18:09:52Z","body":"OK, I got you.\r\n\r\nBefore the change all objects were passed to\r\nhttps://github.com/Codeception/Codeception/blob/dcfc8e303b1260a9b6937448be991620d20e5a64/src/Codeception/Module/REST.php#L397\r\n$this->client->request($method, $url, array(), $files, array(), $parameters);\r\n\r\nIt looks like an unintended behaviour, but @DavertMik change breaks backwards compatibility and should be reverted.\r\n"}}