Skip to content

Conversation

@riosc
Copy link

@riosc riosc commented Apr 10, 2015

// http://stackoverflow.com/questions/3663266/kvc-string-conversion-not-working-for-bool-value

The mapper fails raising a exception [__NSCFString charValue]: unrecognized selector sent to instance when I receive a JSON with bool values. In this case redeemed property

            "order": {
                "id": "566",
                "code": "2704-1428417595",
                "redeemed": "1",
                "purchased_date": "2015-04-07 14:39:55",
                "expiry_date": "2015-05-30 00:00:00",
                "amount": "0.00",
                "transaction": "iOS-1428417595"
            }

// http://stackoverflow.com/questions/3663266/kvc-string-conversion-not-working-for-bool-value

The mapper fails raising a exception `[__NSCFString charValue]: unrecognized selector sent to instance` when I receive a JSON with bool values. In this case redeemed property

                "order": {
                    "id": "566",
                    "code": "2704-1428417595",
                    "redeemed": "1",
                    "purchased_date": "2015-04-07 14:39:55",
                    "expiry_date": "2015-05-30 00:00:00",
                    "amount": "0.00",
                    "transaction": "iOS-1428417595"
                }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant