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

possible to use managed the object's 'objectID' as a JSONKeyPath? #63

Closed
amitailanciano opened this issue Jun 9, 2016 · 4 comments
Closed
Labels

Comments

@amitailanciano
Copy link

I do not have an explicit id field in any of my core data entities, but I would like to have a unique identifier for serialization -- in my application I use the NSManagedObject objectID property as the unique identifier, is it possible to have Groot serialize it along with the rest of my fields?

@gonzalezreal
Copy link
Owner

Sorry, this is not possible at the moment.

@chriswill0w
Copy link

chriswill0w commented Apr 22, 2017

this would be a really nice feature for existing projects which want to adopt Groot. what prevents this from being implemented? Is there another workaround?
@gonzalezreal

@gonzalezreal
Copy link
Owner

There is nothing that prevents this for being implemented. IMHO is a little bit out of scope, but perfectly possible to do it. To be honest, I don't have much time these days, so any PR is welcome, as long as the new functionality is backwards compatible, explicitly opt-in and covered by unit tests.

@chriswill0w
Copy link

thank you for your reply! I decided to use my own UUID because the problem with the objectID is that it might change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants