Skip to content

Commit 19847e6

Browse files
committed
add serialize method.
1 parent b33ba07 commit 19847e6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ To install the library add:
1515
maven { url "https://jitpack.io" }
1616
}
1717
dependencies {
18-
compile 'com.github.webee:java-json-api:v2.1.0'
18+
compile 'com.github.webee:java-json-api:v2.2.0'
1919
}
2020
```

src/main/java/com/github/webee/json/JSON.java

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ public interface JSON {
1010
WritableJSONObject newObject(Map<String, Object> map);
1111
WritableJSONArray newArray();
1212
WritableJSONArray newArray(Object[] array);
13+
String serialize(Object value);
1314
// parse to JSON domain types.
1415
Object parse(String text);
1516
JSONObject parseObject(String text);

0 commit comments

Comments
 (0)