title: How do I verify if JSON data satisfy a JSON Schema specification?
body: <p>I have JSON data in a file called <code>B.json</code> and another file with a JSON schema called <code>BSchema.json</code>.</p>
  <p>I'd like to know how to verify if the JSON data satisfy the JSON Schema specification, for example, in Ubuntu and Windows I can use the <code>xmllint</code> program from the command line to verify the same using the following command: <code>xmllint --schema XMLSchemaFile.xsd --noout DataFile.xml</code>. So, is there any alternative to this command (in Linux or Windows) that allows me to <strong>input the two files</strong> and check if the JSON data satisfy the JSON Schema?</p>
  <p>Note: if there is any other command like that in MacOS, please add to your answer, so the questions will be useful for users of all platforms.</p>