﻿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
29963	JsonField should not allows top-level scalar values	Khashayar	nobody	"Hello,

There is an issue in JsonField validator.

It can validate a number instead of key/value format.

I read its source code and I understand it's for json.dumps() because it encodes python data structure to JSON format so it converts a number to string and it does not throw an exception as TypeError so JsonField validator accepts a number as a correct format and insert it in the database.


{{{
json.dumps(30)
}}}
output is : '30'

"	New feature	closed	contrib.postgres	dev	Normal	wontfix			Unreviewed	0	0	0	0	0	0
