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

Update ToJson Serialization extension methods #21

Closed
briandek opened this issue Jul 19, 2011 · 1 comment
Closed

Update ToJson Serialization extension methods #21

briandek opened this issue Jul 19, 2011 · 1 comment
Assignees

Comments

@briandek
Copy link
Owner

Need to cleanup/remove and update serialization using DataContractJsonSerializer

@ghost ghost assigned briandek Jul 20, 2011
@briandek
Copy link
Owner Author

updated - might need to refactor to take into account container Model Objects.

For example:
Realms are obtained when serializing RealmsData, we return IEnumerable Realms
GuildPerks are obtained when serializing GuildPerksData, we return IEnumerable Perks
GuildRewards are obtained when serializing GuildRewardsData, we return IEnumerable Rewards

so when converting to Json again we need to take into account we can't just convert the IEnumerable Realms object but we need to hold onto or create a new RealmsData object that will hold the Realms object and convert RealmsData

something like
RealmsData newRealmsData = new RealmsData();
RealmsData.Realms = Realms;

string jsonString = ExplorerUtil.ToJSON(newRealmsData);

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

No branches or pull requests

1 participant