<p>I know that every command that I enter in Kubernetes communicate with API.</p>

<p>Now I want to <strong>speak</strong> to API <strong>directly</strong>. 
How can I find <strong>json</strong> format for every command?</p>

yasin lachini
<p>I suggest using a client library if you talk from a programming language:</p>

<p><a href="https://kubernetes.io/docs/reference/#api-client-libraries" rel="nofollow noreferrer">https://kubernetes.io/docs/reference/#api-client-libraries</a></p>

<p>Or use <code>kubectl</code> if you talk from CLI. Hardcoding API schemas will add you a maintenance burden. You're basically reimplementing the client in this case.</p>
