{"id":20962412,"url":"https://github.com/nanomq/hocon","last_synced_at":"2025-05-14T08:33:42.773Z","repository":{"id":104380619,"uuid":"562684770","full_name":"nanomq/hocon","owner":"nanomq","description":"hocon parser","archived":false,"fork":false,"pushed_at":"2024-04-12T15:31:35.000Z","size":66,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-09T01:40:14.016Z","etag":null,"topics":["bison","flex","hocon"],"latest_commit_sha":null,"homepage":"","language":"C","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/nanomq.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}},"created_at":"2022-11-07T03:03:23.000Z","updated_at":"2025-04-21T06:21:43.000Z","dependencies_parsed_at":"2024-04-12T16:40:45.146Z","dependency_job_id":null,"html_url":"https://github.com/nanomq/hocon","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanomq%2Fhocon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanomq%2Fhocon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanomq%2Fhocon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanomq%2Fhocon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nanomq","download_url":"https://codeload.github.com/nanomq/hocon/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254104996,"owners_count":22015576,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["bison","flex","hocon"],"created_at":"2024-11-19T02:33:11.370Z","updated_at":"2025-05-14T08:33:37.764Z","avatar_url":"https://github.com/nanomq.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hocon\n\nHocon data parser for c.\n\n## Overview\nThis project is a Hocon data parser for c. We use flex \u0026\u0026 bison to scan and parse files or strings, and stored the parsed results in cJSON Object. \n\n## Features\n- [x] Json parse.\n- [x] Path expression parse.\n- [x] Value merging.\n- [x] Comment.\n- [x] Includes\n- [x] Multiline string.\n- [ ] Reference.\n- [ ] Value joint.\n- [ ] Whitespace.\n\n## Building\n- Get the code from github\n```shell\ngit clone https://github.com/nanomq/hocon.git\n```\n- Build project\n```shell\ncd hocon \u0026\u0026 mkdir build\ncd build \u0026\u0026 cmake ..\nmake\n```\n\n## Usage\n- Parse from file\n```shell\n    char *hocon_file_path = \"your/hconf/file/path\";\n    cJSON *ret = hocon_parse_file(hocon_file_path);\n\n```\n- parse from string\n```shell\n    char str[] = \"abc=1\";\n    cJSON *ret = hocon_parse_str(str, strlen(str));\n\n```\n\nThen you can use cJSON interface to read data from cJSON object.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnanomq%2Fhocon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnanomq%2Fhocon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnanomq%2Fhocon/lists"}