Skip to content

Commit 8e9dca2

Browse files
authored
Merge pull request skyscreamer#67 from DavidBiesack/android-json-org-java
Change the implementation for org.json to one with a more open license
2 parents 0abb532 + 2f3576c commit 8e9dca2

File tree

3 files changed

+32
-4
lines changed

3 files changed

+32
-4
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
102110
Resources
103111
---------
104112

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
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>
@@ -50,9 +50,9 @@
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>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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+
}

0 commit comments

Comments
 (0)