nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
896bddb
)
lib/json: add a reference to `serialize_to_json` in `to_json`
author
Alexis Laferrière
<alexis.laf@xymus.net>
Thu, 12 May 2016 13:17:49 +0000
(09:17 -0400)
committer
Alexis Laferrière
<alexis.laf@xymus.net>
Fri, 13 May 2016 18:18:04 +0000
(14:18 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
lib/json/static.nit
patch
|
blob
|
history
diff --git
a/lib/json/static.nit
b/lib/json/static.nit
index
565da1f
..
e333b85
100644
(file)
--- a/
lib/json/static.nit
+++ b/
lib/json/static.nit
@@
-31,6
+31,9
@@
private import json_lexer
interface Jsonable
# Encode `self` in JSON.
#
+ # This is a recursive method which can be refined by any subclasses.
+ # To write any `Serializable` object to JSON, see `serialize_to_json`.
+ #
# SEE: `append_json`
fun to_json: String is abstract