Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deserializing JSON issue #816

Closed
achikin opened this issue Aug 19, 2014 · 2 comments
Closed

Deserializing JSON issue #816

achikin opened this issue Aug 19, 2014 · 2 comments

Comments

@achikin
Copy link

achikin commented Aug 19, 2014

I have a lot of json server responses, containing identifiers like { id:123 }. As far as I know it is not a good idea to use a variable, named id in objective-c code. How do you address this issue while creating database objects directly from JSON?
For example can I somehow set some rules for renaming json fields before processing?

@tgoyne
Copy link
Member

tgoyne commented Aug 22, 2014

We're looking into adding support for automatically mapping to and from JSON that doesn't perfectly match the obj-c data model, but at the moment you have to either do it manually or use https://github.com/matthewcheok/Realm-JSON.

@jpsim
Copy link
Contributor

jpsim commented Aug 22, 2014

Closing as duplicate of #694.

@jpsim jpsim closed this as completed Aug 22, 2014
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants