Switch from site_url( '/wp-json/<etc>' ) to json_url. More doing it right.