Return JSON when request succeeds.