{"id":22702045,"url":"https://github.com/elegantchaos/jsonrepresentable","last_synced_at":"2025-08-22T01:20:02.770Z","repository":{"id":59380914,"uuid":"447292295","full_name":"elegantchaos/JSONRepresentable","owner":"elegantchaos","description":"Swift to JSON conversion utilities","archived":false,"fork":false,"pushed_at":"2022-09-15T09:08:47.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-04T20:18:17.238Z","etag":null,"topics":["json","swift"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/elegantchaos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-01-12T16:33:48.000Z","updated_at":"2022-09-15T09:07:48.000Z","dependencies_parsed_at":"2022-09-16T09:51:07.310Z","dependency_job_id":null,"html_url":"https://github.com/elegantchaos/JSONRepresentable","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elegantchaos%2FJSONRepresentable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elegantchaos%2FJSONRepresentable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elegantchaos%2FJSONRepresentable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elegantchaos%2FJSONRepresentable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elegantchaos","download_url":"https://codeload.github.com/elegantchaos/JSONRepresentable/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246232987,"owners_count":20744758,"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":["json","swift"],"created_at":"2024-12-10T07:11:52.808Z","updated_at":"2025-03-29T19:26:30.182Z","avatar_url":"https://github.com/elegantchaos.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JSONRepresentable\n\nThis package defines two protocols: `JSONType` and `JSONRepresentable`.\n\n\n## JSONType\n\nTypes which conform to `JSONType` can be directly represented in JSON.\n\nThe package adds conformance to Swift's basic types: `Bool`, `Int`, `Double`, `String`.\n\nIt defines a dictionary type `JSONDictionary`, with `String` keys and `JSONType` values.\n\nIt also defines an array type `JSONArray`, with `JSONType` values.\n\n\n## JSONRepresentable\n\nTypes which conform to `JSONRepresentable` can be converted into a `JSONType`, using the  `asJSONType` method.\n\nThe package adds conformance to `JSONRepresentable` to various standard types:\n\n- `Array` (where Element is `JSONRepresentable`)\n- `CFString`\n- `Date`\n- `NSArray`\n- `NSDate`\n- `NSDictionary`\n- `NSNumber`\n- `NSNull`\n- `NSString`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felegantchaos%2Fjsonrepresentable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felegantchaos%2Fjsonrepresentable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felegantchaos%2Fjsonrepresentable/lists"}