Find all the JSON files in the local directory and any subdirectories and attempt to parse them with a Ruby JSON parser.
require 'json'
Dir["**/*.json"].each do |json_file|
JSON.parse(File.read(json_file))
end
FYI:
Find all the JSON files in the local directory and any subdirectories and attempt to parse them with a Ruby JSON parser.
require 'json'
Dir["**/*.json"].each do |json_file|
JSON.parse(File.read(json_file))
end
FYI: