Made change to read metadata.json before metadata.rb and fixed the argument to from_json to be a filename instead of the actual content