-
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.
Merge pull request #67 from DavidBiesack/android-json-org-java
Change the implementation for org.json to one with a more open license
- Loading branch information
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(); | ||
|
||
} |