diff options
Diffstat (limited to 'src/org/json/simple/JSONAware.java')
-rw-r--r-- | src/org/json/simple/JSONAware.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/org/json/simple/JSONAware.java b/src/org/json/simple/JSONAware.java new file mode 100644 index 0000000..3ba2ece --- /dev/null +++ b/src/org/json/simple/JSONAware.java | |||
@@ -0,0 +1,14 @@ | |||
1 | package org.json.simple; | ||
2 | |||
3 | /** | ||
4 | * Beans that support customized output of JSON text shall implement this | ||
5 | * interface. | ||
6 | * | ||
7 | * @author FangYidong<fangyidong@yahoo.com.cn> | ||
8 | */ | ||
9 | public interface JSONAware { | ||
10 | /** | ||
11 | * @return JSON text | ||
12 | */ | ||
13 | String toJSONString(); | ||
14 | } | ||