add branching for application/json Content-Type