title: TypeError: Object of type bool_ is not JSON serializable
body: <p>I am trying to write a dictionary to a json file with one of the values in boolean format. I get the following error when I am trying to run my code.</p>
  
  <blockquote>
    <p>raise TypeError(f'Object of type {o.<strong>class</strong>.<strong>name</strong>} '
    TypeError: Object of type bool_ is not JSON serializable</p>
  </blockquote>
  
  <p>I am currently using Python for this purpose.</p>