{"id":15066807,"url":"https://github.com/gd-personal/flexi-json","last_synced_at":"2026-01-30T16:03:20.615Z","repository":{"id":257784694,"uuid":"859751232","full_name":"GD-Personal/flexi-json","owner":"GD-Personal","description":"A ruby gem designed for manipulating JSON data","archived":false,"fork":false,"pushed_at":"2024-10-28T18:59:15.000Z","size":77,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-01T13:20:00.290Z","etag":null,"topics":["json","json-data","ruby-gem","rubygem","rubygems"],"latest_commit_sha":null,"homepage":"","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/GD-Personal.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-19T08:09:21.000Z","updated_at":"2024-10-07T10:02:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"4516ed4a-a8ba-4d5d-880b-6e036ed134f1","html_url":"https://github.com/GD-Personal/flexi-json","commit_stats":null,"previous_names":["gd-personal/flexi-json"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/GD-Personal/flexi-json","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GD-Personal%2Fflexi-json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GD-Personal%2Fflexi-json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GD-Personal%2Fflexi-json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GD-Personal%2Fflexi-json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GD-Personal","download_url":"https://codeload.github.com/GD-Personal/flexi-json/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GD-Personal%2Fflexi-json/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28914943,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T12:13:43.263Z","status":"ssl_error","status_checked_at":"2026-01-30T12:13:22.389Z","response_time":66,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","json-data","ruby-gem","rubygem","rubygems"],"created_at":"2024-09-25T01:12:25.012Z","updated_at":"2026-01-30T16:03:20.596Z","avatar_url":"https://github.com/GD-Personal.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Gem Version](https://img.shields.io/gem/v/flexi-json.svg)](https://rubygems.org/gems/flexi-json)\n[![Github Actions](https://github.com/GD-Personal/flexi-json/actions/workflows/ci.yml/badge.svg)](https://github.com/GD-Personal/flexi-json/actions)\n[![Maintainability](https://api.codeclimate.com/v1/badges/bd14f8a5a0c7575d2ac2/maintainability)](https://codeclimate.com/github/GD-Personal/flexi-json/maintainability)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/bd14f8a5a0c7575d2ac2/test_coverage)](https://codeclimate.com/github/GD-Personal/flexi-json/test_coverage)\n\n# flexi-json\n\n`Flexi::Json` is a versatile Ruby gem designed for manipulating JSON data. With functionalities for searching, generating new JSON, and transforming existing structures.\n\n## Installation\n\nYou can install the gem using RubyGems:\n```\ngem install flexi-json\n```\n\nor add it to your Gemfile\n```\ngem 'flexi-json'\n```\n\nand then run:\n```\nbundle install\n```\n\n## Usage\n```ruby\nrequire 'flexi/json'\n\n# Load a raw json data\nflexi_json = Flexi::Json.new(\"{\\\"name\\\":\\\"John\\\",\\\"address\\\":\\\"Sydney Australia\\\"}\")\n# =\u003e \u003cFlexi::Json:0x0000ffffa0f5fc58 @datasets=[#\u003cFlexi::Json::Dataset:0x0000ffffa0f5f668 @address=\"Sydney Australia\", @attributes={:name=\u003e\"John\", :address=\u003e\"Sydney Australia\"}, @name=\"John\", @searchable_fields=[\"name\", \"address\"]\u003e]\u003e\n\n# Load a json data from a local file\nflexi_json = Flexi::Json.new(\"some/path/to/file.json\")\n\n# Load a json data from a url\nflexi_json = Flexi::Json.new(\"https://raw.githubusercontent.com/GD-Personal/flexi-json/main/spec/data/dataset.json\")\n\n# Search for data\nflexi_json.search(\"john\")\n# =\u003e [#\u003cFlexi::Json::Dataset:0x0000ffffa0f5f668 @address=\"Sydney Australia\", @attributes={:name=\u003e\"John\", :address=\u003e\"Sydney Australia\"}, @name=\"John\", @searchable_fields=[\"name\", \"address\"]\u003e]\n\n# Or filter it by your chosen key e.g first_name\nflexi_json.search(\"john\", \"first_name\")\nflexi_json.search(\"john\", \"first_name,email\")\n\n# Find duplicate emails\nflexi_json.find_duplicates(\"email\")\nflexi_json.find_duplicates(\"email,full_name\")\n```\n\n## Advanced search\n```ruby\nsearch_query = {first_name: \"john\", address: \"sydney\"}\nflexi_json.search(\n  search_query, \n  options: {matched_all: true, exact_match: false}\n)\n# =\u003e [#\u003cFlexi::Json::Dataset:0x0000ffffa0f5f668 @address=\"Sydney Australia\", @attributes={:name=\u003e\"John\", :address=\u003e\"Sydney Australia\"}, @name=\"John\", @searchable_fields=[\"name\", \"address\"]\u003e]\n```\n\n## Configuration\n```ruby\nFlexi::Json.configure do |config|\n  config.exact_match_search = true\n  config.match_all_fields = true\nend\n```\n\n## TODOS\n- Generate results in json, csv, txt, or output in the console\n- Add CRUD support to the dataset\n- Optimise the search function by implementing indeces \n- Optimise the loader by chunking the data\n\n## Contributing\nContributions are welcome! If you have suggestions for improvements or new features, feel free to fork the repository and create a pull request. Please ensure your code adheres to the project's coding standards and includes tests for new features.\n\nBug reports and pull requests are welcome on GitHub at https://github.com/GD-Personal/flexi-json. 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/GD-Personal/flexi-json/blob/main/CODE_OF_CONDUCT.md).\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgd-personal%2Fflexi-json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgd-personal%2Fflexi-json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgd-personal%2Fflexi-json/lists"}