{"id":30285726,"url":"https://github.com/mrkresnofatih/khonsu.parseablejsonobjectbuilder","last_synced_at":"2026-04-13T08:31:17.529Z","repository":{"id":106158264,"uuid":"489671732","full_name":"mrkresnofatih/Khonsu.ParseableJsonObjectBuilder","owner":"mrkresnofatih","description":"Read-Json-Parse-To-Class-Object Utility 🦜🦄🦝🐼🐱","archived":false,"fork":false,"pushed_at":"2022-05-07T12:49:52.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-27T21:52:59.158Z","etag":null,"topics":["file","json","parser"],"latest_commit_sha":null,"homepage":"https://www.nuget.org/packages/Khonsu.ParseableJsonObjectBuilder/","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mrkresnofatih.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-05-07T12:48:38.000Z","updated_at":"2022-05-07T12:53:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"583c4f67-10e7-455d-8b8d-9a0e48f5c165","html_url":"https://github.com/mrkresnofatih/Khonsu.ParseableJsonObjectBuilder","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mrkresnofatih/Khonsu.ParseableJsonObjectBuilder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrkresnofatih%2FKhonsu.ParseableJsonObjectBuilder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrkresnofatih%2FKhonsu.ParseableJsonObjectBuilder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrkresnofatih%2FKhonsu.ParseableJsonObjectBuilder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrkresnofatih%2FKhonsu.ParseableJsonObjectBuilder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrkresnofatih","download_url":"https://codeload.github.com/mrkresnofatih/Khonsu.ParseableJsonObjectBuilder/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrkresnofatih%2FKhonsu.ParseableJsonObjectBuilder/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31746101,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T06:26:45.479Z","status":"ssl_error","status_checked_at":"2026-04-13T06:26:44.645Z","response_time":93,"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":["file","json","parser"],"created_at":"2025-08-16T20:08:01.274Z","updated_at":"2026-04-13T08:31:17.524Z","avatar_url":"https://github.com/mrkresnofatih.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿# Khonsu.ParseableJsonObjectBuilder\n\nA simple json-to-class-object parser utility. A simple usage case is displayed below.\n\nTarget Json File:\n\n```json\n{\n  \"Policy\": \"Basic Permissions\",\n  \"Version\": \"v1.3.12\",\n  \"GrantedPermissions\": {\n    \"Authentication\": [\n      \"APP.AUTH.LOGIN\",\n      \"APP.AUTH.SIGNUP\",\n      \"APP.AUTH.LOGOUT\"\n    ],\n    \"Management\": [\n      \"APP.MNG.CREATE_IAM\",\n      \"APP.MNG.REVOKE_IAM\",\n      \"APP.MNG.UPDATE_IAM\"\n    ]\n  },\n  \"PolicyActive\": true,\n  \"CreatedAt\": 2341209\n}\n```\n\nBasic Permission Class is the example class object.\n\n```c#\npublic class BasicPermission\n    {\n        public string Policy { get; set; }\n        \n        public string Version { get; set; }\n        \n        public Dictionary\u003cstring, List\u003cstring\u003e\u003e GrantedPermissions { get; set; }\n        \n        public bool PolicyActive { get; set; }\n        \n        public long CreatedAt { get; set; }\n\n        public void PrintSelf()\n        {\n            Console.WriteLine($\"Policy: {Policy}\");\n            Console.WriteLine($\"Version: {Version}\");\n            \n            foreach (var grantedPermissionsKey in GrantedPermissions.Keys)\n            {\n                Console.Write(grantedPermissionsKey + \": [\");\n                foreach (var value in GrantedPermissions[grantedPermissionsKey])\n                {\n                    Console.Write(value + \",\");\n                }\n                Console.WriteLine(\"]\");\n            }\n            \n            Console.WriteLine($\"PolicyActive: {PolicyActive}\");\n            Console.WriteLine($\"CreatedAt: {CreatedAt}\");\n        }\n    }\n```\n\nWe parse the json to object as follows.\n\n```c#\n    class Program\n    {\n        static void Main(string[] args)\n        {\n            var basicPermission = new ParseableJsonObjectBuilder\u003cBasicPermission\u003e()\n                .SetJsonPath(\"Configurations/BasicPermissions.json\")    // Path from the root dir of project\n                .Build();\n            \n            basicPermission.PrintSelf();\n            \n            // Policy: Basic Permissions\n            // Version: v1.3.12\n            // Authentication: [APP.AUTH.LOGIN,APP.AUTH.SIGNUP,APP.AUTH.LOGOUT,]\n            // Management: [APP.MNG.CREATE_IAM,APP.MNG.REVOKE_IAM,APP.MNG.UPDATE_IAM,]\n            // PolicyActive: True\n            // CreatedAt: 2341209\n        }\n    }\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrkresnofatih%2Fkhonsu.parseablejsonobjectbuilder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrkresnofatih%2Fkhonsu.parseablejsonobjectbuilder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrkresnofatih%2Fkhonsu.parseablejsonobjectbuilder/lists"}