added json_emit_boolean() function

added a json_emit_boolean() function for convenience