在 Android 2.1 这个
JSONObject o = new JSONObject();
o.put("MyDate", "/Date(1289334937639)/");
Log.d(TAG, o.toString());
生产
{"MyDate":"/Date(1289334937639)/"}
但在 2.2 中它会产生
{"MyDate":"\/Date(1289334937639)\/"}
我正在与 .Net Web 服务交谈,因此 2.2 版本对我来说可以正常工作。如何在不破坏 2.2 的情况下使 2.1 产生相同的东西?
谢谢你的帮助。