Dynamically generate radio group from json
I would suggest something like this:
const obj = result.obj //or whatever your object name is
return (
<div onChange={this.onChangeValue}>
{obj.districtAttorney.map((cand, ind) => (
<label>
<input type="radio" value={cand.name} name="gender" />
<span>{cand.name}</span>
</lable>
}
</div>
Within the map function you can use all data from the json object