resolves name from JSON to device or device list