Initial data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 72d218235f
commit f23f22d71c
199087 changed files with 3378941 additions and 0 deletions

8
Task/JSON/Ruby/json.rb Normal file
View file

@ -0,0 +1,8 @@
require 'json'
ruby_obj = JSON.parse('{"blue": [1, 2], "ocean": "water"}')
puts ruby_obj
ruby_obj["ocean"] = { "water" => ["fishy", "salty"] }
puts JSON.generate(ruby_obj)
puts JSON.pretty_generate(ruby_obj)