{"id":44459176,"url":"https://github.com/g13ydson/json_api_query_parser","last_synced_at":"2026-02-12T18:31:33.303Z","repository":{"id":56879499,"uuid":"139008488","full_name":"g13ydson/json_api_query_parser","owner":"g13ydson","description":"Parse JSON API endpoint and its query parameters to a usable Hash","archived":false,"fork":false,"pushed_at":"2019-03-15T12:38:58.000Z","size":20,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-08T08:19:12.636Z","etag":null,"topics":["fast","json-api","json-parser","rails"],"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/g13ydson.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":"2018-06-28T11:21:51.000Z","updated_at":"2019-03-15T12:38:59.000Z","dependencies_parsed_at":"2022-08-20T23:10:57.250Z","dependency_job_id":null,"html_url":"https://github.com/g13ydson/json_api_query_parser","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/g13ydson/json_api_query_parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g13ydson%2Fjson_api_query_parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g13ydson%2Fjson_api_query_parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g13ydson%2Fjson_api_query_parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g13ydson%2Fjson_api_query_parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/g13ydson","download_url":"https://codeload.github.com/g13ydson/json_api_query_parser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g13ydson%2Fjson_api_query_parser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29376856,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T18:17:34.915Z","status":"ssl_error","status_checked_at":"2026-02-12T18:17:34.495Z","response_time":55,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["fast","json-api","json-parser","rails"],"created_at":"2026-02-12T18:31:32.679Z","updated_at":"2026-02-12T18:31:33.293Z","avatar_url":"https://github.com/g13ydson.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JSON API query parser\n\n[![Gem Version](https://badge.fury.io/rb/json_api_query_parser.svg)](https://badge.fury.io/rb/json_api_query_parser) [![Build Status](https://travis-ci.org/g13ydson/json_api_query_parser.svg?branch=master)](https://travis-ci.org/g13ydson/json_api_query_parser) [![Maintainability](https://api.codeclimate.com/v1/badges/c29beeab2c474cbe15d0/maintainability)](https://codeclimate.com/github/g13ydson/json_api_query_parser/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/c29beeab2c474cbe15d0/test_coverage)](https://codeclimate.com/github/g13ydson/json_api_query_parser/test_coverage)\n\nTo be used for ruby projects that make use of [JSON API](http://jsonapi.org/)\n\n\n## Installation\n\n```sh\n$ gem install json_api_query_parser\n```\n\nOr in the gemfile of the rails project\n\n```ruby\ngem 'json_api_query_parser'\n```\n\n## Usage\n\nRequire the gem 'json_api_query_parser' into your application and use the 'parse_request' method to convert the request.url to an easy\nusable Hash.\n\n```ruby\nrequire('json_api_query_parser')\nJsonApiQueryParser.parse_request(\"movies/5?include=actors,actors.agency\u0026fields[movies]=title,year\u0026fields[actors]=name\u0026page[limit]=20\")\n```\n\n## Return data information\n\nThe Hash returned by the JsonApiQueryParser.parse_request will always be the same structure.\n\n```ruby\n{\n  :resource_type=\u003e\"movies\", \n  :identifier=\u003e\"5\", \n  :query_data=\u003e{\n    :include=\u003e[\"actors\", \"actors.agency\"], \n    :fields=\u003e{:movies=\u003e[\"title\", \"year\"], :actors=\u003e[\"name\"]},\n    :page=\u003e{\"limit\"=\u003e\"20\"}\n  }\n} \n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fg13ydson%2Fjson_api_query_parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fg13ydson%2Fjson_api_query_parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fg13ydson%2Fjson_api_query_parser/lists"}