Converted client serialization to json

Signed-off-by: Tom Wright <tom@inflatablecookie.com>