Registry / serialization / go-ap-jsonld

go-ap-jsonld

JSON →
library0.0.0-20221030091449-f2a191312c73gogounverified

Implements encoding and decoding of JSON-LD as defined in RFC 4627, with support for ActivityPub contexts.

go get github.com/go-ap/jsonld
INSTALL
IMPORT
SIG · GO-AP-JSONLD
G
go-ap-jsonld
serializationgov0.0.0-20221030091449-f2a191312c73
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

jsonld
github.com/go-ap/jsonld

Unmarshals a JSON-LD document into a Go interface.

package main import ( "fmt" "github.com/go-ap/jsonld" ) func main() { data := []byte(`{"@context": "https://www.w3.org/ns/activitystreams", "type": "Note"}`) var doc interface{} jsonld.Unmarshal(data, &doc) fmt.Println(doc) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20221030091449-f2a191312c73latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
OpenAI (training)
1
Resources
go-ap-jsonld — go get go-ap-jsonld · libregistry