connect upstream with downstream
json marshal