I am passing a dict that I get from mysql directly into json. Unfortunately, the json fails when trying to parse the boolean with the following error:

> 
> 'Current token (VALUE\_NUMBER\_INT) not of boolean type
> 
> 
> 

Is the following the preferred way to cast a `TINYINT(1)` to a javascript boolean?

```
if(tm.is_live, 'true', 'false') live_for_preorder,

```