Implement proper protocol for json serialization
Implement specs for unix client