Handled exception when json not provided