Tinyint MYSQL to true/false string in withJson response

Hi. I am using Angular2(typescript), Slim and Mysql. Mysql can store boolean only in 0/1 tinyint. However typescript can’t convert 1/0 to boolean. The best way is to convert it intro true/false string before send. Someone know the best way to do it?

Thanks!!!