mirror of
https://github.com/fankes/JSON-java-compat.git
synced 2025-09-06 10:45:23 +08:00
investigate XML.toString() behavior with null JSONObject values
This commit is contained in:
@@ -1498,8 +1498,7 @@ public class JSONObjectTest {
|
|||||||
* These are three literal name tokens: ...
|
* These are three literal name tokens: ...
|
||||||
* null
|
* null
|
||||||
*
|
*
|
||||||
* There seems to be no best practice, it's all about what we want the code to do.
|
* There seems to be no best practice to follow, it's all about what we want the code to do.
|
||||||
* In the code we see that JSONObject.NULL is tranformed into null
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// add JSONObject.NULL then convert to string in the manner of XML.toString()
|
// add JSONObject.NULL then convert to string in the manner of XML.toString()
|
||||||
|
Reference in New Issue
Block a user