{"action":"opened","issue":{"url":"https://api.github.com/repos/jupyter/nbformat/issues/122","repository_url":"https://api.github.com/repos/jupyter/nbformat","labels_url":"https://api.github.com/repos/jupyter/nbformat/issues/122/labels{/name}","comments_url":"https://api.github.com/repos/jupyter/nbformat/issues/122/comments","events_url":"https://api.github.com/repos/jupyter/nbformat/issues/122/events","html_url":"https://github.com/jupyter/nbformat/issues/122","id":305446843,"number":122,"title":"Docs give incorrect JSON boolean values for code cells","user":{"login":"tloredo","id":186722,"avatar_url":"https://avatars3.githubusercontent.com/u/186722?v=4","gravatar_id":"","url":"https://api.github.com/users/tloredo","html_url":"https://github.com/tloredo","followers_url":"https://api.github.com/users/tloredo/followers","following_url":"https://api.github.com/users/tloredo/following{/other_user}","gists_url":"https://api.github.com/users/tloredo/gists{/gist_id}","starred_url":"https://api.github.com/users/tloredo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tloredo/subscriptions","organizations_url":"https://api.github.com/users/tloredo/orgs","repos_url":"https://api.github.com/users/tloredo/repos","events_url":"https://api.github.com/users/tloredo/events{/privacy}","received_events_url":"https://api.github.com/users/tloredo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-15T07:50:52Z","updated_at":"2018-03-15T07:50:52Z","closed_at":null,"author_association":"NONE","body":"In the docs on ReadTheDocs, here:\r\n\r\n[The Notebook file format — nbformat 4.5 documentation](http://nbformat.readthedocs.io/en/latest/format_description.html)\r\n\r\nthere is an example code cell assigning values of `True` and `False` to boolean metadata. When I tried an example like this using Python 3's json module for parsing, it leads to a not-very-informative `JSONDecodeError`:\r\n\r\n    raise JSONDecodeError(\"Expecting value\", s, err.value) from None\r\n\r\nAfter isolating the problem to the boolean assignments, I found that changing to lower case `true` and `false` allows the parsing to complete without error. The JSON docs don't specifically say boolean values must be lower case, but the examples are lower case:  [JSON Data Types](https://www.w3schools.com/js/js_json_datatypes.asp).\r\n\r\nI think the docs should be fixed to address this; the relevant place appears to be:  <https://github.com/jupyter/nbformat/blob/master/docs/format_description.rst>. I haven't checked for other occurrences of this problem."}}
{"actor":{"display_login":"tloredo"}}