Changed to use JSON instead of msgpack