update protocol to JSON