File tree Expand file tree Collapse file tree 3 files changed +32
-4
lines changed
Expand file tree Collapse file tree 3 files changed +32
-4
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,14 @@ Who uses JSONassert?
9999
100100* * *
101101
102+ org.json
103+ --------
104+
105+ This implementation uses a clean-room implementation of the org.json
106+ library implemented for the Android system, released under the Apache 2.0 license. See
107+ [ com.vaadin.external.google: android-json ] ( http://search.maven.org/#artifactdetails%7Ccom.vaadin.external.google%7Candroid-json%7C0.0.20131108.vaadin1%7Cjar )
108+ That jar does ** not** include the org.json.JSONString interface, so a new implementation of that interface is added to this source.
109+
102110Resources
103111---------
104112
Original file line number Diff line number Diff line change 1010
1111 <groupId >org.skyscreamer</groupId >
1212 <artifactId >jsonassert</artifactId >
13- <version >1.3.1 -SNAPSHOT</version >
13+ <version >1.4.0 -SNAPSHOT</version >
1414 <packaging >jar</packaging >
1515
1616 <name >JSONassert</name >
5050 <!-- For JSONAssert -->
5151 <dependencies >
5252 <dependency >
53- <groupId >org.json </groupId >
54- <artifactId >json</artifactId >
55- <version >20090211 </version >
53+ <groupId >com.vaadin.external.google </groupId >
54+ <artifactId >android- json</artifactId >
55+ <version >0.0.20131108.vaadin1 </version >
5656 </dependency >
5757 <dependency >
5858 <groupId >junit</groupId >
Original file line number Diff line number Diff line change 1+ package org .json ;
2+
3+ /**
4+ * The JSONString interface allows a toJSONString() method so that a class can change
5+ * the behavior of JSONObject.toString(), JSONArray.toString(), and JSONWriter.value(Object).
6+ * The toJSONString method will be used instead of the default behavior of using the
7+ * Object's toString() method and quoting the result.
8+ *
9+ * @author sasdjb
10+ *
11+ */
12+ public interface JSONString {
13+
14+ /**
15+ * The toJSONString method allows a class to produce its own JSON
16+ * serialization.
17+ * */
18+ public String toJSONString ();
19+
20+ }
You can’t perform that action at this time.
0 commit comments