{"id":22319412,"url":"https://github.com/reiver/go-jsonld","last_synced_at":"2026-05-13T23:33:20.410Z","repository":{"id":266266983,"uuid":"897864400","full_name":"reiver/go-jsonld","owner":"reiver","description":"Package jsonld provides JSON-LD encoders and decoders, for the Go programming language. And in particular, handles the way the Fediverse, ActivityPub, and ActivityStreams uses JSON-LD.","archived":false,"fork":false,"pushed_at":"2026-05-02T05:50:17.000Z","size":71,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-05-02T07:28:27.994Z","etag":null,"topics":["activitypub","activitystreams","fediverse","json-ld"],"latest_commit_sha":null,"homepage":"","language":"Go","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/reiver.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-12-03T11:25:37.000Z","updated_at":"2026-05-02T05:50:21.000Z","dependencies_parsed_at":"2025-05-27T07:42:35.860Z","dependency_job_id":"70c8fdfb-2c39-4952-8e6a-3afa2e8db0a9","html_url":"https://github.com/reiver/go-jsonld","commit_stats":null,"previous_names":["reiver/go-jsonld"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/reiver/go-jsonld","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reiver%2Fgo-jsonld","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reiver%2Fgo-jsonld/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reiver%2Fgo-jsonld/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reiver%2Fgo-jsonld/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reiver","download_url":"https://codeload.github.com/reiver/go-jsonld/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reiver%2Fgo-jsonld/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33004261,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"ssl_error","status_checked_at":"2026-05-13T13:14:51.610Z","response_time":115,"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":["activitypub","activitystreams","fediverse","json-ld"],"created_at":"2024-12-04T00:08:50.094Z","updated_at":"2026-05-13T23:33:20.377Z","avatar_url":"https://github.com/reiver.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-jsonld\n\nPackage **jsonld** provides JSON-LD encoders and decoders, for the Go programming language.\n\nAnd in particular, handles the way the Fediverse, ActivityPub, and ActivityStreams uses JSON-LD.\n\nAnd import thing to understand is — you use separate Go `struct`s to represent each JSON-LD namespace.\nBoth for _marshaling_ and _unmarshaling_.\n\n## Documention\n\nOnline documentation, which includes examples, can be found at: http://godoc.org/github.com/reiver/go-jsonld\n\n[![GoDoc](https://godoc.org/github.com/reiver/go-jsonld?status.svg)](https://godoc.org/github.com/reiver/go-jsonld)\n\n## Example\n\nHere is a simple example with only one JSON-LD namespace:\n\n```golang\nimport \"github.com/reiver/go-jsonld\"\n\n// ...\n\n// Note that \"jsonld\" struct-tags are used on the first 2 fields,\n// and \"json\" struct-tags are used on the rest of the fields.\ntype MyStruct struct {\n\tNameSpace jsonld.NameSpace `jsonld:\"http://example.com/ns\"`\n\tPrefix    jsonld.Prefix    `jsonld:\"ex\"`\n\n\tOnce   bool   `json:\"once\"`\n\tTwice  int    `json:\"twice\"`\n\tThrice string `json:\"thrice,omitempty\"`\n\tFource uint   `json:\"fource\"`\n}\n\n// ...\n\nvar value MyStruct // = ...\n\nbytes, err := jsonld.Marshal(value)\n```\n\nHere is a more typical example with multiple JSON-LD namespaces.\n\n```golang\nimport \"github.com/reiver/go-jsonld\"\n\n// ...\n\ntype Person struct {\n\tNameSpace jsonld.NameSpace `jsonld:\"http://ns.example/person\"`\n\tPrefix    jsonld.Prefix    `jsonld:\"person\"`\n\n\tGivenName         string `json:\"given-name,omitempty\"`\n\tAdditionalNames []string `json:\"additional-names,omitempty\"`\n\tFamilyName        string `json:\"family-name,omitempty\"`\n}\n\ntype Programmer struct {\n\tNameSpace jsonld.NameSpace `jsonld:\"http://example.com/programmer\"`\n\tPrefix    jsonld.Prefix    `jsonld:\"programmer\"`\n\n\tProgrammingLanguage string `json:\"programming-language,omitempty\"`\n}\n\n// ...\n\nvar person Person // = ...\nvar programmer Programmer // = ...\n\nbytes, err := jsonld.Marshal(person, programmer)\n```\n\n## Import\n\nTo import package **jsonld** use `import` code like the follownig:\n```\nimport \"github.com/reiver/go-jsonld\"\n```\n\n## Installation\n\nTo install package **jsonld** do the following:\n```\nGOPROXY=direct go get github.com/reiver/go-jsonld\n```\n\n## Author\n\nPackage **jsonld** was written by [Charles Iliya Krempeaux](http://reiver.link)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freiver%2Fgo-jsonld","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freiver%2Fgo-jsonld","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freiver%2Fgo-jsonld/lists"}