Update src/json.class.php

Updated:
when you will pass boolean value, if it's TRUE then it will replace it to 1 else if it's FALSE - it will NULL.