Skip to content

Instantly share code, notes, and snippets.

@burtlo burtlo/son_lint.rb

Created Nov 18, 2015
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
You can’t perform that action at this time.