openmhealth / Granola

A healthy serialization library for your Apple HealthKit data.
Apache License 2.0
196 stars 45 forks source link

Deserialization support? #1

Open krger opened 9 years ago

krger commented 9 years ago

Good afternoon! Is it possible to use Granola to deserialize Open mHealth JSON into HealthKit data?

emersonf commented 9 years ago

Hi. It doesn't implement deserialization yet, but the question has been brought up before and there are some great use cases for it. I've added deserialization to our roadmap here. Feel free to upvote to increase priority.

If you want to contribute some deserialization code, please do! Contribution instructions are at the bottom of the README. The serialization code itself should be a good starting point, the schema library lives here, and there's Foundation support like NSJSONSerialization that should help.