Skip to content

Commit 3621593

Browse files
committed
[JAVA-298]: fixed doc on JSON parse
1 parent 0ad4bd9 commit 3621593

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/main/com/mongodb/util/JSON.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -206,20 +206,20 @@ public static void serialize( Object o , StringBuilder buf ){
206206

207207

208208
/**
209-
* Parses a JSON string into a DBObject.
209+
* Parses a JSON string representing a JSON value
210210
*
211-
* @param s the string to serialize
212-
* @return DBObject the object
211+
* @param s the string to parse
212+
* @return the object
213213
*/
214214
public static Object parse( String s ){
215215
return parse( s, null );
216216
}
217217

218218
/**
219-
* Parses a JSON string into a DBObject.
219+
* Parses a JSON string representing a JSON value
220220
*
221-
* @param s the string to serialize
222-
* @return DBObject the object
221+
* @param s the string to parse
222+
* @return the object
223223
*/
224224
public static Object parse( String s, BSONCallback c ){
225225
if (s == null || (s=s.trim()).equals("")) {

0 commit comments

Comments
 (0)