{"id":35266629,"url":"https://github.com/visionik/trongo","last_synced_at":"2026-04-17T10:32:50.771Z","repository":{"id":330670885,"uuid":"1123535707","full_name":"visionik/trongo","owner":"visionik","description":"TRON (Token Reduced Object Notation) format library for Go","archived":false,"fork":false,"pushed_at":"2025-12-27T06:40:16.000Z","size":85,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-03-29T20:58:24.873Z","etag":null,"topics":["go","json","parser","serialization","tron"],"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/visionik.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":"2025-12-27T04:41:36.000Z","updated_at":"2025-12-27T06:40:13.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/visionik/trongo","commit_stats":null,"previous_names":["visionik/trongo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/visionik/trongo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/visionik%2Ftrongo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/visionik%2Ftrongo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/visionik%2Ftrongo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/visionik%2Ftrongo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/visionik","download_url":"https://codeload.github.com/visionik/trongo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/visionik%2Ftrongo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31925440,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T10:19:20.377Z","status":"ssl_error","status_checked_at":"2026-04-17T10:19:18.682Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["go","json","parser","serialization","tron"],"created_at":"2025-12-30T10:48:19.608Z","updated_at":"2026-04-17T10:32:50.766Z","avatar_url":"https://github.com/visionik.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# trongo\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/tron-format/trongo.svg)](https://pkg.go.dev/github.com/tron-format/trongo)\n[![License: MIT](https://img.shields.io/badge/license-MIT-fef3c0?labelColor=1b1b1f)](./LICENSE)\n\nA Go library for converting data to and from the TRON (Token Reduced Object Notation) format.\n\nThis library provides a Go implementation that matches the API of the standard `encoding/json` package, making it a drop-in replacement for JSON serialization with the benefits of TRON's token efficiency.\n\nSee full specification for the TRON format at: https://tron-format.github.io/\n\n## Installation\n\n```bash\ngo get github.com/tron-format/trongo\n```\n\n## Development\n\nThis project uses a Taskfile and depends on **go-task** (Task): https://taskfile.dev/\n\nCommon commands:\n\n```bash\n# list available tasks\ntask --list\n\n# run the full local workflow (fmt/vet/build/test)\ntask all\n```\n\n## Usage\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n    \"github.com/tron-format/trongo/pkg/tron\"\n)\n\nfunc main() {\n    type Person struct {\n        Name string `json:\"name\"`\n        Age  int    `json:\"age\"`\n    }\n\n    people := []Person{\n        {Name: \"Alice\", Age: 30},\n        {Name: \"Bob\", Age: 25},\n    }\n\n    // Marshal to TRON format\n    data, err := tron.Marshal(people)\n    if err != nil {\n        panic(err)\n    }\n    fmt.Println(string(data))\n    // Output:\n    // class A: name,age\n    //\n    // [A(\"Alice\",30),A(\"Bob\",25)]\n\n    // Unmarshal from TRON format\n    var result []Person\n    err = tron.Unmarshal(data, \u0026result)\n    if err != nil {\n        panic(err)\n    }\n    fmt.Printf(\"%+v\\n\", result)\n    // Output: [{Name:Alice Age:30} {Name:Bob Age:25}]\n}\n```\n\n## API Compatibility\n\nThis library provides the same API as Go's `encoding/json` package:\n\n- `tron.Marshal(v interface{}) ([]byte, error)`\n- `tron.Unmarshal(data []byte, v interface{}) error`\n- `tron.MarshalIndent(v interface{}, prefix, indent string) ([]byte, error)`\n- Support for struct tags (`json:\"fieldname\"`)\n- Support for custom `MarshalTRON()` and `UnmarshalTRON()` methods\n\n## Features\n\n- **Token Efficiency**: TRON format reduces redundancy by defining reusable class structures\n- **JSON Compatibility**: Seamless migration from JSON with identical API\n- **Type Safety**: Full Go type system support with struct tags\n- **Performance**: Optimized for both encoding and decoding operations\n- **Standards Compliant**: Follows the official TRON specification\n\n## Playground\n\nWant to try out TRON with your own data?\n\nGo to https://tron-format.github.io/#/playground and select \"Custom Data\".\n\nPaste in your data to see TRON's token efficiency compared to other data formats!\n\n## License\n\nMIT License © 2025-PRESENT Jonathan Taylor\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvisionik%2Ftrongo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvisionik%2Ftrongo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvisionik%2Ftrongo/lists"}