Skip to content

Commit 468bfee

Browse files
committed
add JSON.Element.toString()
1 parent 1259f91 commit 468bfee

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/javaforce/JSON.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ public Element getChild(String name) {
4545
}
4646
return null;
4747
}
48+
49+
public String toString() {
50+
return key + "=" + value;
51+
}
4852
}
4953
/** Parses a JSON string. */
5054
public static Element parse(String str) throws Exception {

0 commit comments

Comments
 (0)