title: How to check if the value of the key "x" is equal to "value-any"?
body: <p>Follow my example:</p>
  <p>I have a JSON file
  Whose &quot;license&quot; key is equal to &quot;valid&quot;
  Ex:</p>
  <pre><code>{
  license: &quot;valid&quot;, 
  email: &quot;joaodascoves@gmail.com&quot;,
  site: &quot;google.com&quot;
  }
  </code></pre>
  <p>How do I create a conditional:</p>
  <blockquote>
  <p>if the key value &quot;license&quot; is equal to &quot;valid&quot;</p>
  </blockquote>
  <p>I return an X command, if it is <strong>&quot;invalid&quot; I return the command &quot;y&quot;</strong></p>
  <p>I need this, because I want to create a licensing system that will analyze the JSON by URL, and check if the key &quot;license&quot; returns as &quot;valid&quot; or &quot;invalid&quot; and thus execute the different commands depending on these two conditions.</p>