Fix: API serializes JSON.
Merge pull request #1 from dblock/dm-serializer

Fix: API serializes JSON + tests.