We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d56b14 commit 0da01d1Copy full SHA for 0da01d1
src/main/com/mongodb/util/JSON.java
@@ -52,9 +52,8 @@ public static String serialize( Object o ){
52
* @return String containing JSON form of the object
53
* @see com.mongodb.util.JSONSerializers#getLegacy()
54
*/
55
- public static String serialize( Object o, StringBuilder buf) {
+ public static void serialize( Object o, StringBuilder buf) {
56
JSONSerializers.getLegacy().serialize(o, buf);
57
- return buf.toString();
58
}
59
60
/**
0 commit comments