{"id":16208075,"url":"https://github.com/am1goo/system.text.json.combiner","last_synced_at":"2025-08-13T22:30:25.242Z","repository":{"id":226861880,"uuid":"769587276","full_name":"am1goo/System.Text.Json.Combiner","owner":"am1goo","description":"Easiest way to inline one JSON file to another one","archived":false,"fork":false,"pushed_at":"2024-04-21T11:26:13.000Z","size":112,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-13T05:26:49.795Z","etag":null,"topics":["csharp","deserialization","dotnet","inline","json","serialization","system","text"],"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/am1goo.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}},"created_at":"2024-03-09T13:57:04.000Z","updated_at":"2024-05-13T23:00:55.000Z","dependencies_parsed_at":"2024-04-21T12:32:12.195Z","dependency_job_id":"77e2d2a0-53db-4f59-aa89-6db25a9a72e1","html_url":"https://github.com/am1goo/System.Text.Json.Combiner","commit_stats":null,"previous_names":["am1goo/system.text.json.combiner"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/am1goo%2FSystem.Text.Json.Combiner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/am1goo%2FSystem.Text.Json.Combiner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/am1goo%2FSystem.Text.Json.Combiner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/am1goo%2FSystem.Text.Json.Combiner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/am1goo","download_url":"https://codeload.github.com/am1goo/System.Text.Json.Combiner/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229783304,"owners_count":18123453,"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":["csharp","deserialization","dotnet","inline","json","serialization","system","text"],"created_at":"2024-10-10T10:15:17.422Z","updated_at":"2024-12-15T04:41:35.863Z","avatar_url":"https://github.com/am1goo.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"![GitHub Issues or Pull Requests](https://img.shields.io/github/issues/am1goo/System.Text.Json.Combiner)\n![GitHub Issues or Pull Requests](https://img.shields.io/github/issues-pr/am1goo/System.Text.Json.Combiner)\n![GitHub License](https://img.shields.io/github/license/am1goo/System.Text.Json.Combiner)\n\n\u003ca href=\"https://www.nuget.org/packages/am1goo.System.Text.Json.Combiner\" rel=\"nofollow\"\u003e\n\u003cimg alt=\"NuGet Version\" src=\"https://img.shields.io/nuget/v/am1goo.System.Text.Json.Combiner\"\u003e\n\u003c/a\u003e\n\n\u003ca href=\"https://www.nuget.org/packages/am1goo.System.Text.Json.Combiner\" rel=\"nofollow\"\u003e\n\u003cimg alt=\"NuGet Downloads\" src=\"https://img.shields.io/nuget/dt/am1goo.System.Text.Json.Combiner\"\u003e\n\u003c/a\u003e\n\n# System.Text.Json.Combiner\n\n#### What is this:\nYou can deserialize a lot of inlined `JSON` files in one `JSON` file from different sources (local or remote files), like that:\n\n#### Supported schemes:\n- `file://` to load file from system\n- `http://` and `https://` to load files from web servers\n\n#### How it can be used:\n\nUse `JsonCombiner` instead of `JsonSerializer` to deserialize JSON file from file system and inherit each inlined class or struct from `IJsonCombine` interface\n```csharp\npublic TestObject LoadFromFile(string relativePath)\n{\n  string path = Path.Combine(Environment.CurrentDirectory, relativePath);\n  return JsonCombiner.Deserialize\u003cTestObject\u003e(path, options);\n}\n```\n\nAlso you can able to make your own json `IJsonLoader` variant and register it via `JsonCombiner.RegisterLoader` method.\n```csharp\nprivate void Main(string[] args)\n{\n  var myLoader = new MyJsonLoader();\n  JsonCombiner.RegisterLoader(\"myhttp\", myLoader);\n}\n```\n\n#### Example:\n*Root file:*\n```json\n{\n  \"param1\": \"param1\",\n  \"param2\": 2,\n  \"param3\": 3.3,\n  \"inner1\": \"file://inline/inner_object_1.json\",\n  \"inner2\": \"inline/inner_object_2.json\",\n  \"inner3\": \"http://any.public.host.xyz/json.file.json\"\n}\n```\n\n*File `inline/inner_object_1.json`:*\n```json\n{\n  \"arg1\": \"arg1\",\n  \"arg2\": 44,\n  \"arg3\": 55.55\n}\n```\n\n*File `inline/inner_object_2.json`:*\n```json\n{\n  \"arg1\": \"arg2\",\n  \"arg2\": 66,\n  \"arg3\": 77.77\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fam1goo%2Fsystem.text.json.combiner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fam1goo%2Fsystem.text.json.combiner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fam1goo%2Fsystem.text.json.combiner/lists"}