{"id":15038508,"url":"https://github.com/neudinger/jsontoswift","last_synced_at":"2026-03-16T22:36:16.910Z","repository":{"id":118677713,"uuid":"129721399","full_name":"neudinger/JsonToSwift","owner":"neudinger","description":"Source 2 Source Transpiler. Convert Json file to Struct swift file","archived":false,"fork":false,"pushed_at":"2018-04-16T11:33:54.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-13T13:14:07.119Z","etag":null,"topics":["ios","json","json-schema","swift","swift-language","ubuntu"],"latest_commit_sha":null,"homepage":"https://neudinger.github.io/JsonToSwift/","language":"Swift","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/neudinger.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}},"created_at":"2018-04-16T09:51:07.000Z","updated_at":"2021-03-20T10:43:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"f179c6f6-92d6-4846-8cb1-37793fa5c47b","html_url":"https://github.com/neudinger/JsonToSwift","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/neudinger%2FJsonToSwift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neudinger%2FJsonToSwift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neudinger%2FJsonToSwift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neudinger%2FJsonToSwift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neudinger","download_url":"https://codeload.github.com/neudinger/JsonToSwift/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243410446,"owners_count":20286396,"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":["ios","json","json-schema","swift","swift-language","ubuntu"],"created_at":"2024-09-24T20:38:44.379Z","updated_at":"2025-12-29T22:38:39.238Z","avatar_url":"https://github.com/neudinger.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JsonToSwift\n\nA description of this package.\n\n## Getting Started\n\n* This script is Tongji University IOS/Swift project.\n* Convert Json Document to Swift Structure.\n\n### Prerequisites\n\nYou need to have swift installed on your computer.\n\n* [Swift](https://swift.org/getting-started/#installing-swift) - MacOS \u0026 Ubuntu\n* [Swift-docker](https://github.com/swiftdocker/docker-swift) - Linux without Ubuntu\n\n\n## Running\n```\ncat data.json | swift run jsontoswift \u003e struct.swift\n```\n\n```\n// create struct with initial values\nvar obj = JsonObject()\n\n// create struct with json parameter values\nlet jsonFile: String = \"{\\\"answer\\\": 42, \\\"hello\\\": \\\"world\\\"}\"\nlet jsonData = jsonFile.data(using: .utf8)\nlet json = try? JSONSerialization.jsonObject(with: jsonData!, options: .mutableLeaves)\nvar objprime = JsonObject(json)\n\nprint(obj)\nprint(objprime)\n```\n\n\n## Authors\n\n* **Barre Kevin** - *Initial work* - [neudinger](https://github.com/neudinger)\n\n## Code Style and Optimisation\n\nI learned SWIFT language and write this project in 2 days.\n\nYou can use this for personal project. But don't use for professional project because is just school project.\n\nSo may be the code is not awesome but i will never touch this proprietary language again.\n\n## License\n\nThis project is licensed under the GNU GENERAL PUBLIC LICENSE\n                       Version 3 - see the [GNU GPL3](LICENSE) file for details\n\n## Epitech Cheater\n\nPlease understand the project and the swift language\ndon't copy - paste foolishly.\n\nSkills \u0026 Experiences \u003e School Ranking","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneudinger%2Fjsontoswift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneudinger%2Fjsontoswift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneudinger%2Fjsontoswift/lists"}