title: Specflow read Json response
body: <p>Need to test GET that have Json as a response. I haven't found useful info in official documentation.</p>
  
  <pre><code>Feature: API_Retrieving_Platforms
      As an authorized user...
   @mytag
  Scenario: Perform Get request
      Given I am an authorized user
      When I perform GET request "/api/hotels/lists/platforms",
      Then I receive a JSON in response:
      """
      [
          {
              "refId": 1,
              "label": "Mobile"
          },
          {
              "refId": 2,
              "label": "Desktop"
          }
      ]
      """
  </code></pre>
  
  <p>The step for retrieving Json is:</p>
  
  <pre><code>[Then(@"I receive a JSON in response:")]
      public void ThenIReceiveAJSONInResponse(string JSON)
      {
          Assert.Equal(HttpStatusCode.OK, _responseMessage.StatusCode);
      }
  </code></pre>
  
  <p>How to parse this?
  <a href="https://i.stack.imgur.com/3k3Xu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3k3Xu.png" alt="enter image description here"></a></p>