{"id":29278578,"url":"https://github.com/vachhanihpavan/rejson-rb","last_synced_at":"2025-09-29T07:27:15.798Z","repository":{"id":36697044,"uuid":"229694544","full_name":"vachhanihpavan/rejson-rb","owner":"vachhanihpavan","description":"ReJSON adapter/client for Ruby. Store/Retrieve JSON documents in Redis database using Ruby","archived":false,"fork":false,"pushed_at":"2023-08-29T04:50:07.000Z","size":17,"stargazers_count":18,"open_issues_count":4,"forks_count":16,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-28T09:51:21.817Z","etag":null,"topics":["json","redis","redis-client","rejson","rejson-client"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/rejson-rb","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/vachhanihpavan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-23T06:53:34.000Z","updated_at":"2025-02-11T21:34:51.000Z","dependencies_parsed_at":"2022-09-08T21:21:48.003Z","dependency_job_id":null,"html_url":"https://github.com/vachhanihpavan/rejson-rb","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/vachhanihpavan/rejson-rb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vachhanihpavan%2Frejson-rb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vachhanihpavan%2Frejson-rb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vachhanihpavan%2Frejson-rb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vachhanihpavan%2Frejson-rb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vachhanihpavan","download_url":"https://codeload.github.com/vachhanihpavan/rejson-rb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vachhanihpavan%2Frejson-rb/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262622893,"owners_count":23338704,"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":["json","redis","redis-client","rejson","rejson-client"],"created_at":"2025-07-05T12:01:53.674Z","updated_at":"2025-09-29T07:27:10.744Z","avatar_url":"https://github.com/vachhanihpavan.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RedisJSON Ruby Client [![Build Status](https://travis-ci.com/vachhanihpavan/rejson-rb.svg?token=x85KXUqPs5qJik1EzpyW\u0026branch=master)](https://travis-ci.com/vachhanihpavan/rejson-rb)  [![Gem Version](https://badge.fury.io/rb/rejson-rb.svg)](https://badge.fury.io/rb/rejson-rb)\n\nrejson-rb is a package that allows storing, updating and querying objects as JSON documents in a [Redis](https://redis.io/) database that is extended with the [ReJSON](https://github.com/RedisJSON/RedisJSON) module. The package extends redis-rb's interface with ReJSON's API, and performs on-the-fly serialization/deserialization of objects to/from JSON.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'rejson-rb'\n```\n\nAnd then execute:\n\n    $ bundle install\n\nOr install it yourself as:\n\n    $ gem install rejson-rb\n\n## Usage\n\nMake sure you have loaded rejson module in `redis.conf`\n```ruby\nrequire 'rejson'\n\nrcl = Redis.new # Get a redis client\n\n# Get/Set/Delete keys\nobj = {\n        'foo': 42,\n        'arr': [nil, true, 3.14],\n        'truth': {\n          'coord': \"out there\"\n        }\n      }\n\nrcl.json_set(\"root\", Rejson::Path.root_path, obj)\n# =\u003e \"OK\" \n\nrcl.json_set(\"root\", Rejson::Path.new(\".foo\"), 56)\n# =\u003e \"OK\" \n\nrcl.json_get \"root\", Rejson::Path.root_path\n# =\u003e {\"foo\"=\u003e56, \"arr\"=\u003e[nil, true, 3.14], \"truth\"=\u003e{\"coord\"=\u003e\"out there\"}}\n\nrcl.json_del \"root\", \".truth.coord\"\n# =\u003e 1\n\n# Use similar to redis-rb client\nrj = rcl.pipelined do\n  rcl.set \"foo\", \"bar\"\n  rcl.json_set \"test\", \".\", \"{:foo =\u003e 'bar', :baz =\u003e 'qux'}\"\nend\n# =\u003e [\"OK\", \"OK\"] \n```\n\nPath to JSON can be passed as `Rejson::Path.new(\"\u003cpath\u003e\")` or `Rejson::Path.root_path`. `\u003cpath\u003e` syntax can be as mentioned [here](https://oss.redislabs.com/redisjson/path).\n\n### Refer project WIKI for more detailed documentation.\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/vachhanihpavan/rejson-rb. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/vachhanihpavan/rejson-rb/blob/master/CODE_OF_CONDUCT.md).\n\nFor complete documentation about ReJSON's commands, refer to ReJSON's website.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the Rejson project's codebase, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/vachhanihpavan/rejson-rb/blob/master/CODE_OF_CONDUCT.md).#\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvachhanihpavan%2Frejson-rb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvachhanihpavan%2Frejson-rb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvachhanihpavan%2Frejson-rb/lists"}