title: How do I send this json request body from angular using http client post method?
body: <p>This is Postman example of how request body looks like
  I am sending query_string to flask backend and it return list of tweets.
  <a href="https://i.stack.imgur.com/Xifld.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Xifld.png" alt="Postman Image" /></a></p>
  <p>Now I want to send post request from angular application using http client post method</p>
  <p>searchTerm is the query_string</p>
  <pre><code>import { GoogleResponse } from './components/GoogleResponse.model';
  import { environment } from './../environments/environment';
  import { Injectable, Query } from '@angular/core';
  import { HttpClient } from '@angular/common/http';
  import { Observable } from 'rxjs';
  import { solr_Response } from './components/solr_response.model';
  
  @Injectable({
    providedIn: 'root'
  })
  export class SearchService {
  
    
  
    private url: string = '3.22.175.82:5000/queryresult';
  
  
  
    /*     solr url     */
  
  
    constructor(private httpClient:HttpClient) { }
  
    /**
     * 
     * @param searchTerm 
     * @returns 
     */
    getSearchData(searchTerm: string): Observable&lt;any&gt; {
  
      
      
      return this.httpClient.post(this.url, searchTerm);
    
    }
  
  
  
  }
  
  
  </code></pre>
  <p>I am simply sending an string as request body but it's giving me errors my guess is the body needs to be in a object or simply string is enough.
  But I am getting this errors
  <a href="https://i.stack.imgur.com/069nh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/069nh.png" alt="enter image description here" /></a></p>