Skip to content

Instantly share code, notes, and snippets.

View tyler-boyd's full-sized avatar

Tyler Boyd tyler-boyd

  • TradeRev
  • Toronto, ON
View GitHub Profile
require 'json'
first = JSON.parse File.read 'first.json'
second = JSON.parse File.read 'second.json'
third = JSON.parse File.read 'third.json'
categories = []
first['filterElementCommands'].each_with_index do |top_level_category_info, index|
top_category = { info: top_level_category_info }