Reworked enforcement.pm to call the json WebAPI.