{"id":16852615,"url":"https://github.com/avdv/play-json-refined","last_synced_at":"2025-12-15T00:40:20.770Z","repository":{"id":8484949,"uuid":"58573594","full_name":"avdv/play-json-refined","owner":"avdv","description":"Play JSON Reads/Writes instances for refined types","archived":false,"fork":false,"pushed_at":"2025-03-10T18:49:17.000Z","size":314,"stargazers_count":24,"open_issues_count":8,"forks_count":6,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-10T19:42:35.869Z","etag":null,"topics":["json","refinement-types","scala"],"latest_commit_sha":null,"homepage":"https://github.com/avdv/play-json-refined","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/avdv.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"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":"2016-05-11T19:14:54.000Z","updated_at":"2025-03-10T18:49:21.000Z","dependencies_parsed_at":"2023-02-16T21:15:29.984Z","dependency_job_id":"77145e95-ff7b-4901-9953-9eb93deeb371","html_url":"https://github.com/avdv/play-json-refined","commit_stats":null,"previous_names":["lunaryorn/play-json-refined"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avdv%2Fplay-json-refined","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avdv%2Fplay-json-refined/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avdv%2Fplay-json-refined/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avdv%2Fplay-json-refined/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/avdv","download_url":"https://codeload.github.com/avdv/play-json-refined/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243846976,"owners_count":20357294,"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","refinement-types","scala"],"created_at":"2024-10-13T13:48:03.397Z","updated_at":"2025-12-15T00:40:20.715Z","avatar_url":"https://github.com/avdv.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# play-json-refined\n\n[![Apache 2.0 license](https://img.shields.io/github/license/avdv/play-json-refined)](http://www.apache.org/licenses/LICENSE-2.0)\n[![Github workflow status](https://github.com/avdv/play-json-refined/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/avdv/play-json-refined/actions/workflows/test.yml?query=branch%3Amain)\n\n[Play JSON][] Reads/Writes instances for [refined][] types. \nIn other words, this library let’s you convert refined types to and from JSON.\n\n[Play JSON]: https://www.playframework.com/documentation/2.8.x/ScalaJson\n[refined]: https://github.com/fthomas/refined\n\n## Installation\n\nAdd the following to your `build.sbt`:\n\n```scala\nlibraryDependencies += \"de.cbley\" %% \"play-json-refined\" % \"\u003cversion\u003e\"\n```\n\nReplace `\u003cversion\u003e` with the desired version, see https://mvnrepository.com/artifact/de.cbley/play-json-refined.\n\n## Usage\n\n``` scala\nimport eu.timepit.refined._\nimport eu.timepit.refined.auto._\nimport eu.timepit.refined.api._\nimport play.api.libs.json._\nimport de.cbley.refined.play.json._\nWelcome to Scala 2.11.8 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_65).\nType in expressions for evaluation. Or try :help.\n\nscala\u003e type PosInt = Int Refined numeric.Positive\ndefined type alias PosInt\n\nscala\u003e val foo : PosInt = 42\nfoo: PosInt = 42\n\nscala\u003e Json.toJson(foo)\nres0: play.api.libs.json.JsValue = 42\n\nscala\u003e Json.fromJson[PosInt](JsNumber(42))\nres3: play.api.libs.json.JsResult[PosInt] = JsSuccess(42,)\n\nscala\u003e Json.fromJson[PosInt](JsNumber(-42))\nres4: play.api.libs.json.JsResult[PosInt] =\nJsError(List((,List(ValidationError(List(Predicate failed: (-42 \u003e\n0).),WrappedArray())))))\n```\n\n## License\n\nCopyright 2016–2019 Sebastian Wiesner\nCopyright 2019 Claudio Bley\n\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\nthis file except in compliance with the License.  You may obtain a copy of the\nLicense at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed\nunder the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR\nCONDITIONS OF ANY KIND, either express or implied.  See the License for the\nspecific language governing permissions and limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favdv%2Fplay-json-refined","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Favdv%2Fplay-json-refined","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favdv%2Fplay-json-refined/lists"}