using json instead of msgpack