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