Mapping text that describes connected devices to a JSON object with chosen shape

Is this similar?