nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge: src/nit: remove unused primitive_types module
[nit.git]
/
src
/
examples
/
nitwebcrawl.nit
diff --git
a/src/examples/nitwebcrawl.nit
b/src/examples/nitwebcrawl.nit
index
e981ac6
..
767e64c
100644
(file)
--- a/
src/examples/nitwebcrawl.nit
+++ b/
src/examples/nitwebcrawl.nit
@@
-13,7
+13,7
@@
# limitations under the License.
# Crawler on the nitweb web API
# limitations under the License.
# Crawler on the nitweb web API
-module nitwebcrawl
+module nitwebcrawl is example
import json::static
import json::static
@@
-32,7
+32,7
@@
fun curl(url: String): String do
end
# Recursively collect all string values in a json value associated to a given key.
end
# Recursively collect all string values in a json value associated to a given key.
-fun search_json(json: nullable Jsonable, key: String, result: nullable Array[String]): Array[String]
+fun search_json(json: nullable Serializable, key: String, result: nullable Array[String]): Array[String]
do
if result == null then result = new Array[String]
if json isa JsonObject then
do
if result == null then result = new Array[String]
if json isa JsonObject then