handle multiple json responses in body