create json exchange protocol