One more refactor for list_devices_with_details method, changed outputting json structure.