{"id":16378939,"url":"https://github.com/nextdevv/jsonfile","last_synced_at":"2025-10-26T10:30:48.201Z","repository":{"id":63047549,"uuid":"563008006","full_name":"NextDevv/JsonFile","owner":"NextDevv","description":"An easy way to create and access JSON Files!","archived":true,"fork":false,"pushed_at":"2023-11-14T23:27:01.000Z","size":5247,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-01T17:42:46.709Z","etag":null,"topics":["java","kotlin"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/NextDevv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null},"funding":{"github":["SpreestDev"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2022-11-07T18:04:39.000Z","updated_at":"2024-06-11T10:59:10.000Z","dependencies_parsed_at":"2023-01-23T02:45:38.975Z","dependency_job_id":null,"html_url":"https://github.com/NextDevv/JsonFile","commit_stats":null,"previous_names":["nextdevv/jsonfile"],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NextDevv%2FJsonFile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NextDevv%2FJsonFile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NextDevv%2FJsonFile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NextDevv%2FJsonFile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NextDevv","download_url":"https://codeload.github.com/NextDevv/JsonFile/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238310208,"owners_count":19450816,"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":["java","kotlin"],"created_at":"2024-10-11T03:47:00.941Z","updated_at":"2025-10-26T10:30:47.645Z","avatar_url":"https://github.com/NextDevv.png","language":"Kotlin","funding_links":["https://github.com/sponsors/SpreestDev"],"categories":[],"sub_categories":[],"readme":"![https://github.com/SpreestDev/SpreestDev/blob/main/jsonfile-logo.png](https://github.com/SpreestDev/SpreestDev/blob/main/jsonfile-logo-banner-test.png)\n[![](https://jitpack.io/v/SpreestDev/JsonFile.svg)](https://jitpack.io/#SpreestDev/JsonFile) [![](https://jitci.com/gh/SpreestDev/JsonFile/svg)](https://jitci.com/gh/SpreestDev/JsonFile)\n\u003chr\u003e\n\n# JsonFile\nJsonFile is a Kotlin JSON API that simplifies the creation and modification of JSON files. It takes a URL as an input and retrieves the JSON file from there. It also supports interoperability with Java and all Java versions. JsonFile allows you to easily read, write, update and delete data from JSON files using Kotlin syntax and features.\n\n\u003cdetails\u003e\u003csummary\u003eUPDATES\u003c/summary\u003e\n\u003cp\u003e\n\n## Updates\n| Version | About | Can get it |\n|-----:|:---------------:| :----- |\n|     V1.5.0| Major update and added YamlFiles              | :white_check_mark: |\n|     V1.4.9| Fixed bug about JsonUrl              | :white_check_mark: |\n|     V1.4.8| Fixed bug about JsonUrl              | :white_check_mark: |\n|     V1.4.7| Fixed bug about JsonUrl              | :white_check_mark: |\n|     V1.4.6| JsonUrl added              |:x:|\n|     V1.4.4| Added automated Directory creation              |:white_check_mark:|\n|     V1.4.3| Dependecy support added              |:white_check_mark:|\n## Descriptions\n**V1.5.0**\nBug fix and major update, added YamlFile and url, ability to convert from json to yaml and vice versa\n\n**V1.4.9**\nBug fix and release\n\n**V1.4.8**\nBug fix and release\n\n**V1.4.7**\nBug fix and release\n\n**V1.4.6**\nAdded the possibility to convert Json files fron url to a JsonFile class\n\n**V1.4.4**\nAdded automated directory creation, to prevent any errors\n\n**V1.4.3**\nDependecy support, so you can use JsonFile in your project\n\n\u003c/p\u003e\n\u003c/details\u003e\n\n## Project Implementation\n\n### MAVEN\n\n#### Repository \n```XML\n\u003crepositories\u003e\n   \u003crepository\u003e\n      \u003cid\u003ejitpack.io\u003c/id\u003e\n      \u003curl\u003ehttps://jitpack.io\u003c/url\u003e\n   \u003c/repository\u003e\n\u003c/repositories\u003e\n```\n\n#### Dependency \n```XML\n\u003cdependency\u003e\n      \u003cgroupId\u003ecom.github.SpreestDev\u003c/groupId\u003e\n      \u003cartifactId\u003eJsonFile\u003c/artifactId\u003e\n      \u003cversion\u003eV1.5.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n### GRADLE\n#### Repository \n```GRADLE\nallprojects {\n   repositories {\n      maven { url 'https://jitpack.io' }\n   }\n}\n```\n#### Dependency \n```GRADLE\ndependencies {\n   implementation 'com.github.SpreestDev:JsonFile:V1.5.0'\n}\n```\n\n## How to start\n\nInitialization of the class:\n\n#### JAVA\n```JAVA\n JsonFile file = new JsonFile(\"file\");\n Map\u003cString, Object\u003e defaults = new HashMap\u003cString, Object\u003e() {\n    {\n      put(\"a\", \"1\");\n      put(\"b\", \"2\");\n      put(\"c\", \"3\");\n      put(\"d\", \"4\");\n      put(\"e\", \"5\");\n      put(\"f\", \"6\");\n    }\n};\n\nif(!file.exists()) {\n  file.create((HashMap\u003cString, Object\u003e) defaults);\n}\n\nSystem.out.println(file.getString(\"a\"));\n```\n#### KOTLIN\n```KOTLIN\nval file2 = JsonFile(\"file\")\nval defaults = hashMapOf\u003cString, Any\u003e(\n    \"a\" to \"1\",\n    \"b\" to \"2\",\n    \"c\" to \"3\",\n    \"d\" to \"4\",\n    \"e\" to \"5\",\n    \"f\" to \"6\"\n)\n    \nif (!file2.exists()) {\n  file2.create(defaults)\n}\n\nprintln(file2[\"a\"])\n```\n\nTo get a class:\n#### JAVA\n```JAVA\nJsonFile file = new JsonFile(\"file\");\nCar car = (Car) file.getObject(\"obj\", Car.class);\n\nassert car != null;\nSystem.out.println(car.getModel());\n```\n\n#### KOTLIN\n```KOTLIN\nval file = JsonFile(\"file\")\nval car = (file.getObject(\"obj\", Car::class.java) as Car?)!!\n\nprintln(car.model)\n```\n\n## More updates to the wiki will come soon 🔜 !\n\n## Features Upcoming \n- [X] Automate directory creation\n- [X] Read json url\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnextdevv%2Fjsonfile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnextdevv%2Fjsonfile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnextdevv%2Fjsonfile/lists"}