﻿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
5590	JSON encoding fails on Promise (result of gettext_lazy)	Jeremy Dunck	nobody	"When attempting to dump a Promise, JSON encoding fails.

Example:
{{{
>>> s5 = ugettext_lazy('Yet another string')
>>> simplejson.dumps(s5, cls=json.DjangoJSONEncoder)
...
<type 'exceptions.TypeError'>: <django.utils.functional.__proxy__ object at 0x171ca30> is not JSON serializable
}}}

I think the right solution is to have DjangoJSONEncoder handle casting to string.

Patch attached."		closed	Core (Serialization)	dev		duplicate	unicode json serialization i18n	Brandon Konkle	Ready for checkin	1	0	0	0	0	0
