﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
32807	JSONField.bound_data raises TypeError when data is None	Dan Strokirk	Dan Strokirk	"Hi,

When a bound form with no value provided for the JSONField is rendered, it will currently crash.

{{{
class JSONForm(Form):
    json_field = JSONField(required=False)
form = JSONForm({})
assert form.as_p()
}}}

raises

{{{
TypeError: the JSON object must be str, bytes or bytearray, not NoneType
}}}

A fix has been created already by @AlexHill here: https://github.com/django/django/pull/13844"	Bug	closed	Forms	3.2	Normal	fixed	JSONField		Ready for checkin	1	0	0	0	1	0
