- A. return (json.dumps({d[‘hostname’]: dfserialNumber’] for d in json.loads(testJsonX’response’]}))
- B. return (json.dumps({for d in json.loads(testjson)[‘respcnse’]: d[‘hostname’]: dfserialNumber’]}))
- C. return (json.loads({d[‘hostname’]: d[‘serialNumber’] for c in json.dumps(test_json)[‘response’}))
- D. return (json.loads({for d in json.dumps(testjson)[‘respcnse’]: d[‘hostname’]: dfserialNumber’]}))
The post Which line must be added in the Python function to return the JSON object {“cat_9k”: “FXS1932Q2SE”}? appeared first on Majanto.