[WIP] Add JSON serializer

Targets #151
For what exactly do you wnat me to add a callback here?