[WIP] Add JSON serializer

Targets #151
A single command does not need to be an object.