Skip to content

Instantly share code, notes, and snippets.

Created November 18, 2015 00:57
What would you like to do?
Find all the JSON files in the local directory and any subdirectories and attempt to parse them with a Ruby JSON parser. If any of them fail to load an error message will be displayed.
require 'json'
Dir["**/*.json"].each do |json_file|
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment