AJAX in plugin wp_send_json() sending html

Fixed it! I was getting a false positive with the ajax request. I thought it was going through but returning ‘undefined’ but I was actually using the wrong url.