MT#7239 enforce boolean context

when updating a JSON::Boolean