[WIP] Add JSON serializer

Targets #151
How is this supposed to take several params?