{"id":15787179,"url":"https://github.com/fmo91/rxobjectmapper","last_synced_at":"2026-05-19T10:02:50.610Z","repository":{"id":62453160,"uuid":"80424026","full_name":"fmo91/RxObjectMapper","owner":"fmo91","description":"ObjectMapper extensions for RxSwift","archived":false,"fork":false,"pushed_at":"2017-01-30T13:54:12.000Z","size":302,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-12T01:41:44.614Z","etag":null,"topics":["ios","json","rxswift","swift"],"latest_commit_sha":null,"homepage":null,"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/fmo91.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}},"created_at":"2017-01-30T13:32:43.000Z","updated_at":"2017-01-30T13:35:22.000Z","dependencies_parsed_at":"2022-11-01T22:46:32.722Z","dependency_job_id":null,"html_url":"https://github.com/fmo91/RxObjectMapper","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/fmo91/RxObjectMapper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fmo91%2FRxObjectMapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fmo91%2FRxObjectMapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fmo91%2FRxObjectMapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fmo91%2FRxObjectMapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fmo91","download_url":"https://codeload.github.com/fmo91/RxObjectMapper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fmo91%2FRxObjectMapper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271405573,"owners_count":24753798,"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","status":"online","status_checked_at":"2025-08-20T02:00:09.606Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","rxswift","swift"],"created_at":"2024-10-04T21:06:07.883Z","updated_at":"2026-05-19T10:02:50.499Z","avatar_url":"https://github.com/fmo91.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RxObjectMapper\n\n[![CI Status](http://img.shields.io/travis/fmo91/RxObjectMapper.svg?style=flat)](https://travis-ci.org/fmo91/RxObjectMapper)\n[![Version](https://img.shields.io/cocoapods/v/RxObjectMapper.svg?style=flat)](http://cocoapods.org/pods/RxObjectMapper)\n[![License](https://img.shields.io/cocoapods/l/RxObjectMapper.svg?style=flat)](http://cocoapods.org/pods/RxObjectMapper)\n[![Platform](https://img.shields.io/cocoapods/p/RxObjectMapper.svg?style=flat)](http://cocoapods.org/pods/RxObjectMapper)\n\n## Introduction\n\nRxObjectMapper is a set of extensions over `Observable\u003cElement\u003e` that transforms an `Observable\u003cAny\u003e` in `Observable\u003cT\u003e` or `Observable\u003c[T]\u003e` where T is `Mappable`.\n\n## mapObject\n\n`mapObject` transforms `Observable\u003cAny\u003e` into `Observable\u003cT\u003e` where T is `Mappable`.\n\n```swift\nlet url = URL(string: \"https://jsonplaceholder.typicode.com/posts/1\")!\n\nURLSession.shared\n    .rx.json(url: url)\n    .mapObject(type: Post.self)\n    .subscribe(\n        onNext: { (post: Post) in\n            print(\"Post title =\u003e \\(post.title)\")\n        },\n        onError: { _ in\n            print(\"Error\")\n        }\n    )\n    .addDisposableTo(disposeBag)\n```\n\n## mapArray\n\n`mapArray` transforms `Observable\u003cAny\u003e` into `Observable\u003c[T]\u003e` where T is `Mappable`.\n\n```swift\nURLSession.shared\n    .rx.json(url: URL(string: \"https://jsonplaceholder.typicode.com/posts\")!)\n    .mapArray(type: Post.self)\n    .subscribe(\n        onNext: { (posts: [Post]) in\n            // ...\n        },\n        onError: { _ in\n            print(\"Error\")\n        }\n    )\n    .addDisposableTo(disposeBag)\n```\n\n## Example\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n## Requirements\n\nRxObjectMapper relies on:\n\n* RxSwift 3.0\n* RxCocoa 3.0\n* ObjectMapper 2.2\n* Swift 3, of course.\n\n## Installation\n\nRxObjectMapper is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod \"RxObjectMapper\"\n```\n\n## Author\n\nfmo91, ortizfernandomartin@gmail.com\n\n## License\n\nRxObjectMapper 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%2Ffmo91%2Frxobjectmapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffmo91%2Frxobjectmapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffmo91%2Frxobjectmapper/lists"}