introduced JSONRPCBase with serialize function