{"id":50657,"library":"francoispqt-gojay","title":"gojay","description":"Package gojay implements high-performance JSON encoding and decoding.","status":"active","version":"1.2.13","language":"go","source_language":null,"source_url":"https://github.com/francoispqt/gojay","tags":["json","encoding","decoding","performance"],"install":[{"cmd":"go get github.com/francoispqt/gojay","lang":"bash","label":"Install github.com/francoispqt/gojay"}],"dependencies":[],"imports":[{"symbol":"gojay","correct":"github.com/francoispqt/gojay"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"github.com/francoispqt/gojay\"\n)\n\ntype User struct {\n\tName string\n\tAge  int\n}\n\nfunc (u *User) UnmarshalJSONObject(dec *gojay.Decoder, key string) error {\n\tswitch key {\n\tcase \"name\":\n\t\treturn dec.String(&u.Name)\n\tcase \"age\":\n\t\treturn dec.Int(&u.Age)\n\t}\n\treturn nil\n}\n\nfunc (u *User) NKeys() int { return 2 }\n\nfunc main() {\n\tu := &User{}\n\terr := gojay.UnmarshalJSONObject([]byte(`{\"name\":\"John\",\"age\":30}`), u)\n\tif err != nil {\n\t\tfmt.Println(\"Error:\", err)\n\t}\n\tfmt.Printf(\"%+v\\n\", u)\n}","lang":"go","description":"Unmarshal JSON into a struct using gojay's object decoding."},"warnings":[],"env_vars":null,"search_vec":"'decod':11,14 'encod':9,13 'gojay':1,3 'high':6 'high-perform':5 'implement':4 'json':8,12 'packag':2 'perform':7,15","created_at":"2026-06-15T05:03:34.121440+00:00","updated_at":"2026-06-15T05:03:34.121440+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/francoispqt/gojay","github":"https://github.com/francoispqt/gojay","docs":"https://pkg.go.dev/github.com/francoispqt/gojay#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["serialization"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}