{"id":21215443,"url":"https://github.com/choueric/jconfig","last_synced_at":"2026-05-18T06:03:00.600Z","repository":{"id":57517179,"uuid":"78487709","full_name":"choueric/jconfig","owner":"choueric","description":"Simple JSON configuration file tools.","archived":false,"fork":false,"pushed_at":"2020-03-11T03:18:41.000Z","size":22,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-09T16:19:50.267Z","etag":null,"topics":["golang","json"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/choueric.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}},"created_at":"2017-01-10T02:00:25.000Z","updated_at":"2020-03-11T03:18:00.000Z","dependencies_parsed_at":"2022-09-15T21:52:19.581Z","dependency_job_id":null,"html_url":"https://github.com/choueric/jconfig","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/choueric/jconfig","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/choueric%2Fjconfig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/choueric%2Fjconfig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/choueric%2Fjconfig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/choueric%2Fjconfig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/choueric","download_url":"https://codeload.github.com/choueric/jconfig/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/choueric%2Fjconfig/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33167430,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T05:43:36.989Z","status":"ssl_error","status_checked_at":"2026-05-18T05:43:19.133Z","response_time":71,"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":["golang","json"],"created_at":"2024-11-20T21:38:46.910Z","updated_at":"2026-05-18T06:03:00.578Z","avatar_url":"https://github.com/choueric.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jconfig\n\nThis is a Go package to parse a configuration file using JSON.\n\n[![Build Status](https://travis-ci.org/choueric/jconfig.svg?branch=master)](https://travis-ci.org/choueric/jconfig)\n[![GoDoc](https://godoc.org/github.com/choueric/jconfig?status.svg)](https://godoc.org/github.com/choueric/jconfig)\n\n## Installation\n\n```sh\ngo get github.com/choueric/jconfig\n\nimport (\n\t\t\"github.com/choueric/jconfig\"\n\t   )\n```\n\n## Usage\n-----\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/choueric/jconfig\"\n)\n\nconst DefContent = `{\n\t\"server\": \"127.0.0.1:8088\"\n}\n`\n\ntype Config struct {\n\tServer string `json:\"server\"`\n}\n\nfunc getConfig() *Config {\n\t// NOTE: Config{} is the your own type to store configurations.\n\tjc := jconfig.New(\"config.json\", Config{}) \n\n\tif _, err := jc.Load(DefContent); err != nil {\n\t\tfmt.Println(\"load config error:\", err)\n\t\treturn nil\n\t}\n\n\treturn jc.Data().(*Config) // convert to your own type and return.\n}\n```\n\nRefer to `jconfig_test.go` for more details of how to use it.\n\nAnother usage is config.go of [kbdashboard](https://github.com/choueric/kernelBuildDashboard.git)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchoueric%2Fjconfig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchoueric%2Fjconfig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchoueric%2Fjconfig/lists"}