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

Map properties to multiple JSON key paths #270

Merged
merged 11 commits into from Mar 18, 2014

Conversation

robb
Copy link
Member

@robb robb commented Mar 14, 2014

Fixes #263

@robb robb added this to the 2.0 milestone Mar 14, 2014
@robb robb added the JSON label Mar 14, 2014
- (NSDictionary *)JSONDictionary __attribute((deprecated("Replaced by -serializeToJSONDictionary:")));
- (NSDictionary *)JSONDictionary __attribute__((deprecated("Replaced by -serializeToJSONDictionary:")));

- (NSString *)JSONKeyPathForPropertyKey:(NSString *)key __attribute__((unavailable("Replaced by -JSONKeyPathsByPropertyKey")));
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@paulyoung This may be relevant to #264

@jspahrsummers jspahrsummers self-assigned this Mar 17, 2014
// Returns a dictionary mapping property keys to JSON key paths (as strings) or
// NSNull values.
// Returns a dictionary mapping property keys to one or multiple JSON key paths
// (as strings or arrays of strings).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is getting more complicated, can you document an example on this method?

@jspahrsummers
Copy link
Member

Can you add a test for associating multiple JSON key paths with multiple components to one property, as well?

@robb
Copy link
Member Author

robb commented Mar 18, 2014

Let me know what you think of this example

// Any keys omitted will not participate in JSON serialization.
//
// Returns a dictionary mapping property keys to JSON key paths (as strings) or
// NSNull values.
// For example:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be titled "Examples" per TomDoc style.

@jspahrsummers
Copy link
Member

🚈

@robb
Copy link
Member Author

robb commented Mar 18, 2014

🚄

@jspahrsummers
Copy link
Member

🚋

jspahrsummers added a commit that referenced this pull request Mar 18, 2014
Map properties to multiple JSON key paths
@jspahrsummers jspahrsummers merged commit ec1f44a into 2.0-development Mar 18, 2014
@jspahrsummers jspahrsummers deleted the multiple-keypaths branch March 18, 2014 17:39
@robb robb modified the milestone: 2.0 Mar 18, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants