id: json
title: Request JSON API
tags: ts-json
----
<p>
    Simple <code>POST</code> request with JSON body.
</p>

<div class="card example">
  <div class="card-header">
    <h5 class="d-inline mr-2">Demo</h5>
    <button class="btn btn-link btn-sm reset">Reset</button>
    <button class="btn btn-link btn-sm source">View Source</button>
  </div>

  <p class="card-body">
      <a href="/json"
         ts-json="{&quot;user&quot;:{&quot;name&quot;:&quot;Sanya&quot;}}"
         ts-req
         ts-req-method="po