[json-lib-user] JSONObject.fromBean(bean) cannot describe null
Brought to you by:
aalmiray
|
From: Jiro I. <iw...@sy...> - 2007-05-14 08:13:11
|
Hello.
I intend to transform bean into json using JSONObject.fromBean(bean).
The property of bean include null value like below
bean.setHoge(null);
I expect json below
{"hoge": null}
but result is
{"hoge": ""}
is this bug?
Please teach it.
Jiro
--
Jiro Iwamoto <iw...@sy...>
|