{"id":15038762,"url":"https://github.com/willpowell8/dictionaryutils","last_synced_at":"2025-04-09T23:53:52.870Z","repository":{"id":54254356,"uuid":"86931094","full_name":"willpowell8/DictionaryUtils","owner":"willpowell8","description":"iOS Dictionary Utilities for Swift - allowing you to pull properties from a dictionary using a string eg. data.readString(\"field[0].name\")","archived":false,"fork":false,"pushed_at":"2019-06-18T15:17:50.000Z","size":33,"stargazers_count":14,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T23:53:43.845Z","etag":null,"topics":["cocoapods","dictionary","ios","json","objectmapper","swift","swift-library","swift4","swiftyjson","willpowell"],"latest_commit_sha":null,"homepage":"http://www.willpowell.co.uk","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/willpowell8.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-01T17:42:32.000Z","updated_at":"2024-02-17T01:41:16.000Z","dependencies_parsed_at":"2022-08-13T10:10:23.522Z","dependency_job_id":null,"html_url":"https://github.com/willpowell8/DictionaryUtils","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willpowell8%2FDictionaryUtils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willpowell8%2FDictionaryUtils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willpowell8%2FDictionaryUtils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willpowell8%2FDictionaryUtils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willpowell8","download_url":"https://codeload.github.com/willpowell8/DictionaryUtils/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248131453,"owners_count":21052819,"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":["cocoapods","dictionary","ios","json","objectmapper","swift","swift-library","swift4","swiftyjson","willpowell"],"created_at":"2024-09-24T20:40:06.808Z","updated_at":"2025-04-09T23:53:52.845Z","avatar_url":"https://github.com/willpowell8.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"![alt text](https://raw.githubusercontent.com/willpowell8/DictionaryUtils/master/page/dictionaryUtils.png \"iOS Dictionary Utils\")\n# DictionaryUtils\n\nDictionary utils allows you to use JSON like referencing to travers an object.\n\n[![CI Status](http://img.shields.io/travis/willpowell8/DictionaryUtils.svg?style=flat)](https://travis-ci.org/willpowell8/DictionaryUtils)\n[![Version](https://img.shields.io/cocoapods/v/DictionaryUtils.svg?style=flat)](http://cocoapods.org/pods/DictionaryUtils)\n[![License](https://img.shields.io/cocoapods/l/DictionaryUtils.svg?style=flat)](http://cocoapods.org/pods/DictionaryUtils)\n[![Platform](https://img.shields.io/cocoapods/p/DictionaryUtils.svg?style=flat)](http://cocoapods.org/pods/DictionaryUtils)\n\n## Example\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n## Installation\n\nDictionaryUtils is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```swift\npod \"DictionaryUtils\"\n```\n\n## Usage\nLets say we define an aribitary dictionary that has an arrry within it. We ideally want to be able to access properties without referencing each child object, but in a more friendly fashion.\n\n```swift\nlet data = [\"data\":[\"ary\":[[\"value\":1,\"property1\":\"WELCOME\"],[\"value\":0,\"property1\":\"WELCOME2\"]]]]\n\n```\nWe can find the property of a child by using the the following code\n\n```swift\ndo {\n    let output = try data.readString(\"data.ary[0].property1\")\n    print(output!)\n}catch{\n    print(\"ERROR\")\n}\n\n```\n\nThis library will also let you do parameter based discovery within arrays like the below example:\n\n```swift\ndo {\n    let output = try data.readString(\"data.ary[value=0].property1\")\n    print(output!)\n}catch{\n    print(\"ERROR\")\n}\n\n```\n\n\n\n## Author\n\nwillpowell8\n\n## License\n\nDictionaryUtils is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillpowell8%2Fdictionaryutils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwillpowell8%2Fdictionaryutils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillpowell8%2Fdictionaryutils/lists"}