{"action":"closed","issue":{"url":"https://api.github.com/repos/symfony/symfony/issues/10731","labels_url":"https://api.github.com/repos/symfony/symfony/issues/10731/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/10731/comments","events_url":"https://api.github.com/repos/symfony/symfony/issues/10731/events","html_url":"https://github.com/symfony/symfony/issues/10731","id":31724906,"number":10731,"title":"[Form] false value is converted to null","user":{"login":"lukaszwit","id":1374694,"avatar_url":"https://avatars.githubusercontent.com/u/1374694?v=3","gravatar_id":"","url":"https://api.github.com/users/lukaszwit","html_url":"https://github.com/lukaszwit","followers_url":"https://api.github.com/users/lukaszwit/followers","following_url":"https://api.github.com/users/lukaszwit/following{/other_user}","gists_url":"https://api.github.com/users/lukaszwit/gists{/gist_id}","starred_url":"https://api.github.com/users/lukaszwit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukaszwit/subscriptions","organizations_url":"https://api.github.com/users/lukaszwit/orgs","repos_url":"https://api.github.com/users/lukaszwit/repos","events_url":"https://api.github.com/users/lukaszwit/events{/privacy}","received_events_url":"https://api.github.com/users/lukaszwit/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/symfony/symfony/labels/Form","name":"Form","color":"DDDDDD"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-04-17T13:08:44Z","updated_at":"2015-11-01T11:58:30Z","closed_at":"2015-11-01T11:58:30Z","body":"When sending json\r\n```\r\n{\"required\":false}\r\n```\r\n to a form like this:\r\n```\r\n// ...\r\npublic function buildForm(FormBuilderInterface $builder, array $options)\r\n    {\r\n        $builder->add('required', 'text')\r\n    }\r\n    \r\n    public function getName()\r\n    {\r\n        return null;\r\n    }\r\n//...\r\n\r\n\r\n```\r\n\r\nthe value of \r\n```\r\n$form->get('required')->getData();\r\n```\r\nis null. \r\nWhen sending \r\n```\r\n{\"required\":true}\r\n```\r\nit works fine (returns true).\r\n\r\n"}}