Serialize data so it's JSON safe
Merge pull request #24 from marcoceppi/api

Serialize data so it's JSON safe