Read_with_parse.rb

This content was produced by an LLM and could include errors.

This script loads the JSON library. It reads the contents of file.json and uses JSON.parse to convert the JSON string into a usable Ruby Hash.

require 'json'
#=> true
JSON.parse(File.read('input/json/file.json'))
#=> {"key" => "value"}

Ruby 4.0.3