Functions new + manage Exceptions + XML to JSON