-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change the implementation bundle for org.json to one with a more open…
… license. Use com.vaadin.external.google : android-json : 0.0.20131108.vaadin1 which has the Apache License 2.0 license: http://www.apache.org/licenses/LICENSE-2.0 Add source for org.json.JSONString interface, which is missing from the above bundle.
- Loading branch information
David Biesack
authored and
David Biesack
committed
Jul 13, 2016
1 parent
0abb532
commit 2f3576c
Showing
3 changed files
with
32 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package org.json; | ||
|
||
/** | ||
* The JSONString interface allows a toJSONString() method so that a class can change | ||
* the behavior of JSONObject.toString(), JSONArray.toString(), and JSONWriter.value(Object). | ||
* The toJSONString method will be used instead of the default behavior of using the | ||
* Object's toString() method and quoting the result. | ||
* | ||
* @author sasdjb | ||
* | ||
*/ | ||
public interface JSONString { | ||
|
||
/** | ||
* The toJSONString method allows a class to produce its own JSON | ||
* serialization. | ||
* */ | ||
public String toJSONString(); | ||
|
||
} |