Sidef
view release on metacpan or search on metacpan
scripts/json.sf view on Meta::CPAN
#!/usr/bin/ruby
var json = require('JSON::PP').new;
# Parse JSON
var data = json.decode('{"blue": [1, 2], "ocean": "water"}');
say data;
# Change JSON
data{:ocean} = Hash.new(water => %w[fishy salty]);
# Encode JSON
say json.encode(data);
( run in 0.499 second using v1.01-cache-2.11-cpan-39bf76dae61 )