3 # This file is part of NIT ( http://www.nitlanguage.org ).
4 # This program is public domain
7 # SEE: <http://rosettacode.org/wiki/JSON>
17 var json
= str
.parse_json
22 if not json
isa JsonObject then return
25 var arr
= json
["blue"]
30 json
["ocean"] = new JsonArray.from
(["fishy", "salty"])
32 print json
.to_pretty_json