Registry / serialization / google-jsonapi

google-jsonapi

JSON →
library1.0.0gogounverified

A serializer and deserializer for JSON API (jsonapi.org) payloads in Go.

go get github.com/google/jsonapi
INSTALL
IMPORT
SIG · GOOGLE-JSONAPI
G
google-jsonapi
serializationgov1.0.0
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.

jsonapi
github.com/google/jsonapi

Marshals a struct into a JSON API payload.

package main import ( "bytes" "github.com/google/jsonapi" ) type Blog struct { ID int `jsonapi:"primary,blog"` Title string `jsonapi:"attr,title"` } func main() { blog := &Blog{ID: 1, Title: "Hello"} buf := new(bytes.Buffer) jsonapi.MarshalOnePayload(buf, blog) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
google-jsonapi — go get google-jsonapi · libregistry