{"id":13483899,"url":"https://github.com/a2design-inc/json-compare","last_synced_at":"2026-01-06T01:55:18.576Z","repository":{"id":56879549,"uuid":"5105683","full_name":"a2design-inc/json-compare","owner":"a2design-inc","description":"Returns the difference between two JSON files.","archived":false,"fork":false,"pushed_at":"2018-08-20T19:26:52.000Z","size":238,"stargazers_count":60,"open_issues_count":12,"forks_count":31,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-02-24T22:52:40.024Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/json-compare","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/a2design-inc.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-07-19T05:03:50.000Z","updated_at":"2025-02-14T09:49:25.000Z","dependencies_parsed_at":"2022-08-20T11:40:45.878Z","dependency_job_id":null,"html_url":"https://github.com/a2design-inc/json-compare","commit_stats":null,"previous_names":["a2design-company/json-compare"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a2design-inc%2Fjson-compare","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a2design-inc%2Fjson-compare/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a2design-inc%2Fjson-compare/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a2design-inc%2Fjson-compare/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/a2design-inc","download_url":"https://codeload.github.com/a2design-inc/json-compare/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245405672,"owners_count":20609968,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T17:01:16.638Z","updated_at":"2026-01-06T01:55:18.520Z","avatar_url":"https://github.com/a2design-inc.png","language":"Ruby","readme":"# JsonCompare\n\nReturns the difference between two JSON files.\n\n[![Build Status](http://travis-ci.org/a2design-company/json-compare.png?branch=master)](http://travis-ci.org/a2design-company/json-compare)\n[![Dependency Status](https://gemnasium.com/a2design-company/json-compare.png?travis)](https://gemnasium.com/a2design-company/json-compare)\n[![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/a2design-company/json-compare)\n[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/a2design-company/json-compare/trend.png)](https://bitdeli.com/free \"Bitdeli Badge\")\n[![Pledgie!](https://pledgie.com/campaigns/25182.png?skin_name=chrome)](https://pledgie.com/campaigns/25182)\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'json-compare'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install json-compare\n\n## Usage\n\n    require 'yajl'\n    require 'json-compare'\n\n    json1 = File.new('spec/fixtures/twitter-search.json', 'r')\n    json2 = File.new('spec/fixtures/twitter-search2.json', 'r')\n    old, new = Yajl::Parser.parse(json1), Yajl::Parser.parse(json2)\n    result = JsonCompare.get_diff(old, new)\n\nIf you want to exclude some keys from comparison use exclusion param:\n\n    exclusion = [\"from_user\", \"to_user_id\"]\n    result = JsonCompare.get_diff(old, new, exclusion)\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Added some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","funding_links":[],"categories":["Diff","WebSocket"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa2design-inc%2Fjson-compare","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fa2design-inc%2Fjson-compare","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa2design-inc%2Fjson-compare/lists"}