Adds boolValue safeguard to for automated in json