fixed json build error when no device is specified in rhel