{"id":13340808,"url":"https://github.com/MistressPlague/JsonConfig","last_synced_at":"2025-03-11T19:30:35.803Z","repository":{"id":159481351,"uuid":"349957901","full_name":"MistressPlague/JsonConfig","owner":"MistressPlague","description":"The Fastest Json Config Library For Saving/Loading A Config Easily With Json, Able To Entirely Serialize Objects Back And Forth, Especially Ideal For MelonLoader Mods For Games Such As VRChat.","archived":false,"fork":false,"pushed_at":"2022-02-03T16:58:01.000Z","size":355,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-24T06:29:39.563Z","etag":null,"topics":["config","json","jsonconfig","litjson","melonloader","ofwmodz","plague","save","saving","vrcanticrash","vrchat"],"latest_commit_sha":null,"homepage":"https://vrcanticrash.com","language":"C#","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MistressPlague.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":"2021-03-21T09:56:09.000Z","updated_at":"2023-03-13T09:41:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"3068c732-53e2-4bc7-974c-a2d3daeffc20","html_url":"https://github.com/MistressPlague/JsonConfig","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/MistressPlague%2FJsonConfig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MistressPlague%2FJsonConfig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MistressPlague%2FJsonConfig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MistressPlague%2FJsonConfig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MistressPlague","download_url":"https://codeload.github.com/MistressPlague/JsonConfig/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243098626,"owners_count":20236062,"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":["config","json","jsonconfig","litjson","melonloader","ofwmodz","plague","save","saving","vrcanticrash","vrchat"],"created_at":"2024-07-29T19:24:02.407Z","updated_at":"2025-03-11T19:30:35.797Z","avatar_url":"https://github.com/MistressPlague.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Notice:\nFor Use In MelonLoader Mods Or Such Where Newtonsoft.Json Is Needed To Be Used, [Click Here](https://github.com/MistressPlague/JsonConfig/tree/6b0d69e5f536dc4155d0ca9059c9256f2097e302)\n\n# JsonConfig\nThe **Fastest** Json Config Library For Saving/Loading A Config Easily With Json, Able To Entirely Serialize Objects Back And Forth, Especially Ideal For MelonLoader Mods For Games Such As VRChat.\n\n**If You Use This In Your Project, Please Star This Repo So I Can Have A Look, Might Even Help You Dev It! \u003c3**\n\n`NOTE: Use Of This In Your Project Requires It Contain My Original` [LICENSE](https://github.com/OFWModz/JsonConfig/blob/main/LICENSE) `File, Named LICENSE_PLAGUE \u0026 Have:` \"[JsonConfig](https://github.com/OFWModz/JsonConfig), Licensed Under The Use-Only License\" `In Your README.md - You Must Also Use The Same License Or No License - Copyright Disclaimers Are To Be Preserved. - Modification Is Not Permitted. Only Use And Distribution With The Original LICENSE Intact. - Optionally You Can Not Include My Source In Your Repo And Only Include The LICENSE.`\n\n**NOTE: Use Of This Requires You Add Spreads.Utf8Json To Your Project. Click Tools \u003e NuGet Package Manager \u003e Package Manager Console Then Type: `Install-Package Spreads.Utf8Json -Version 1.0.0-build1903051941R`**\n\nJsonConfig Standalone .cs File: [JsonConfig.cs](https://github.com/OFWModz/JsonConfig/blob/main/JsonConfigTest/JsonConfigTest/Libraries/JsonConfig.cs)\n\n# Example Usage\n```csharp\npublic class ConfigTest\n{\n    public int Test1 = 69;\n    public string Test2 = \"Test Text\";\n    public bool Test3 = true;\n    public float Test4 = 69.987f;\n    public string[] Test5 = { \"Test 5 1\", \"Test 5 2\" };\n}\n\ninternal static ConfigTest JsonConfig = new ConfigTest();\n\nprivate void LoadConfigButton_Click(object sender, EventArgs e)\n{\n    var Output = JsonConfig.LoadConfig(ref JsonConfig, Environment.CurrentDirectory + \"\\\\TestConfig.json\");\n\n    MessageBox.Show(Output.Item1 + \" - \" + Output.Item2);\n}\n\nprivate void EditAndSaveConfigButton_Click(object sender, EventArgs e)\n{\n    JsonConfig.Test2 = \"I WAS EDITED! HOORAY!\";\n\n    var Output = JsonConfig.SaveConfig(JsonConfig, Environment.CurrentDirectory + \"\\\\TestConfig.json\");\n\n    MessageBox.Show(Output.Item1 + \" - \" + Output.Item2);\n}\n```\n\n# Info:\nMethod | Function\n------------ | -------------\nJsonConfig.LoadConfig\u003cT\u003e(T type, string DirToConfig) | Loads The Config File At The Dir Specified Then Applies All The Found Matching Values To Your Input Type (Such As A Class).\nJsonConfig.SaveConfig\u003cT\u003e(T type, string DirToConfig, bool Readable = true) | Saves The Config File At The Dir Specified With All Of The Values Found In The Input Type (Such As Ints, Bools, Etc) - NOTE: bool Readable Specifies If You Want The Config To Be Readable By The Average User.\n\n# To-Do:\n- [x] Make Easier To Use\n- [x] Add Ability To Effectively Obfuscate The Config Via A Parameter (Default Is Readable)\n- [x] Finish Documentation\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMistressPlague%2FJsonConfig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMistressPlague%2FJsonConfig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMistressPlague%2FJsonConfig/lists"}