Write a program that will compare two json objects and give a score between 0 and 1 as to how similar they are, a score of 1 meaning the objects are identical. There are sample JSON files in the data directory for testing.
- Move to
json
folder.
cd json
- Install dependencies.
bundle install
- Start rails app
rails s
app/service/json_service.rb - This is where the actual calculation occurs app/controllers/compare_controller.rb & app/views/compare/index.html.erb
Results are rounded to 2 decimal places.