title: javascript JSON.stringify converts zodjs boolean to a number (1 or 0)
body: <p><br/> I am building an app with Typescript/nextjs/reactjs and I am using zodjs schema and types to validate user input in my frontend and backend. One of my problem is that when I JSON.stringify my user input (an object with a zod boolean) to send it to my backend/api, the boolean will be changed in 1 for true and 0 for false. That ends in an validation error in my backend.</p>
  <p>The validation error looks like this:</p>
  <pre><code>&lt;br/&gt;
  &quot;code&quot;: &quot;invalid_type&quot;,&lt;br/&gt;
  &quot;expected&quot;: &quot;boolean&quot;,&lt;br/&gt;
  &quot;received&quot;: &quot;number&quot;,&lt;br/&gt;
  ...&lt;br/&gt;
  &quot;message&quot;: &quot;Expected boolean, received number&quot;&lt;br/&gt;
  </code></pre>
  <p>My Zodjs Object/Schema and type looks like this:</p>
  <pre><code>export const SomeObject = z
    .object({
    ...
    active: z.boolean().default(true),
    ...
   }).strict();
  export type SomeObject = z.infer&lt;typeof SomeObject&gt;;
  </code></pre>
  <p>what am I doing wrong?</p>