proper bool to json translation