{"id":17861211,"url":"https://github.com/jonathanstowe/json-name","last_synced_at":"2025-07-03T03:04:21.391Z","repository":{"id":66980405,"uuid":"45842520","full_name":"jonathanstowe/JSON-Name","owner":"jonathanstowe","description":"Provide a trait (and Attribute role) for JSON Marshal/Unmarshal where the JSON names aren't Raku identifiers","archived":false,"fork":false,"pushed_at":"2022-08-07T08:44:22.000Z","size":17,"stargazers_count":3,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-07T08:05:44.250Z","etag":null,"topics":["json","meta","raku"],"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":"2015-11-09T14:18:51.000Z","updated_at":"2022-08-07T08:44:25.000Z","dependencies_parsed_at":"2023-05-16T10:00:52.725Z","dependency_job_id":null,"html_url":"https://github.com/jonathanstowe/JSON-Name","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/jonathanstowe/JSON-Name","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathanstowe%2FJSON-Name","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathanstowe%2FJSON-Name/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathanstowe%2FJSON-Name/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathanstowe%2FJSON-Name/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonathanstowe","download_url":"https://codeload.github.com/jonathanstowe/JSON-Name/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathanstowe%2FJSON-Name/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263250598,"owners_count":23437288,"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","meta","raku"],"created_at":"2024-10-28T08:43:21.966Z","updated_at":"2025-07-03T03:04:21.382Z","avatar_url":"https://github.com/jonathanstowe.png","language":"Raku","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JSON::Name\n\nProvide a trait (and Attribute role) for JSON Marshal/Unmarshal where the JSON names aren't Raku identifiers.\n\n![Build Status](https://github.com/jonathanstowe/JSON-Name/workflows/CI/badge.svg)\n\n## Synopsis\n\n```raku\nuse JSON::Name;\n\nclass MyClass {\n\t# The attribute meta object will have the role JSON::Name::NamedAttribute\n   # applied and \"666.evil.name\" will be stored in it's json-name attribute\n   has $.nice-name is json-name('666.evil.name');\n\n}\n\n```\n\n## Description\n\nThis is released as a dependency of\n[JSON::Marshal](https://github.com/jonathanstowe/JSON-Marshal) and\n[JSON::Unmarshal](https://github.com/tadzik/JSON-Unmarshal) in order to\nsave duplication, it is intended to store a separate JSON name for an\nattribute where the name of the JSON attribute might be changed, either\nfor aesthetic reasons or the name is not a valid Raku identifier. It will\nof course also be needed in classes thar are going to use JSON::Marshal\nor JSON::Unmarshal for serialisation/de-serialisation.\n\nOf course it could be used in other modules for a similar purpose.\n\n## Installation\n\nAssuming you have a working Rakudo installation you should be able to install this with *zef* :\n\n    # From the source directory\n   \n    zef install .\n\n    # Remote installation\n\n    zef install JSON::Name\n\n\n## Support\n\nSuggestions/patches are welcomed via github at https://github.com/jonathanstowe/JSON-Name\n\n## Licence\n\nThis is free software.\n\nPlease see the [LICENCE](LICENCE) file in the distribution\n\n© Jonathan Stowe 2015 - 2021\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonathanstowe%2Fjson-name","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonathanstowe%2Fjson-name","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonathanstowe%2Fjson-name/lists"}