{"id":15168577,"url":"https://github.com/jonathanstowe/json-optin","last_synced_at":"2026-01-21T07:34:25.236Z","repository":{"id":66980410,"uuid":"408537360","full_name":"jonathanstowe/JSON-OptIn","owner":"jonathanstowe","description":"Provide a trait and role to identify opt-in JSON serialization","archived":false,"fork":false,"pushed_at":"2022-08-07T08:46:56.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-15T09:35:21.478Z","etag":null,"topics":["json","opt-in","raku","serialization"],"latest_commit_sha":null,"homepage":"","language":"Raku","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"artistic-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jonathanstowe.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","contributing":null,"funding":null,"license":null,"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":"2021-09-20T17:26:10.000Z","updated_at":"2022-08-07T08:46:59.000Z","dependencies_parsed_at":"2023-05-16T10:30:39.303Z","dependency_job_id":null,"html_url":"https://github.com/jonathanstowe/JSON-OptIn","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"6e8b66042e18fd78c7daab1bab3404b61cf6d645"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathanstowe%2FJSON-OptIn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathanstowe%2FJSON-OptIn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathanstowe%2FJSON-OptIn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathanstowe%2FJSON-OptIn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonathanstowe","download_url":"https://codeload.github.com/jonathanstowe/JSON-OptIn/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248060484,"owners_count":21041165,"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","opt-in","raku","serialization"],"created_at":"2024-09-27T06:23:17.852Z","updated_at":"2026-01-21T07:34:25.225Z","avatar_url":"https://github.com/jonathanstowe.png","language":"Raku","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JSON-OptIn\n\nProvide a trait and role to identify opt-in JSON serialization\n\n[![CI](https://github.com/jonathanstowe/JSON-OptIn/actions/workflows/main.yml/badge.svg)](https://github.com/jonathanstowe/JSON-OptIn/actions/workflows/main.yml)\n\n## Synopsis\n\n```raku\n\nuse JSON::OptIn;\n\nclass Foo {\n   # The attribute will be serialized if opt-in has been selected\n   has Str $.bar is json;\n\n\n}\n```\n\n## Description\n\nThis provides a trait and a role for the identification of 'opt in' serialisiable attributes in,\nfor example, [JSON::Marshal](https://github.com/jonathanstowe/JSON-Marshal).  It's probably\nnot necessary to use this directly as it will be required by e.g. [JSON::Name](https://github.com/jonathanstowe/JSON-Name)\nbut it's just more convenient to package it separately.\n\n\n## Installation\n\nYou probably don't need to install this separately unless you are creating a new module that might use it, as it will\nbe pulled in as a dependency where it is needed, however if you have a working rakudo installation you can install it with *zef*:\n\n    zef install JSON::OptIn;\n\n## Support\n\nThis doesn't provide any user facing functionality, it is likely that if you are experiencing problems then it is in some\nmodule that depends on this.  However you can report issues at [GitHub](https://github.com/jonathanstowe/JSON-OptIn/issues).\n\n## Licence \u0026\u0026 Copyright\n\nThis is free software please see the [LICENCE](LICENCE) file in the distribution for details.\n\n© Jonathan Stowe 2021\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonathanstowe%2Fjson-optin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonathanstowe%2Fjson-optin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonathanstowe%2Fjson-optin/lists"}