skip to Main Content

Add timestamp to API call JSON output

I need to add timestamp in key-value format on a JSON response. This is what I have right now: now = datetime.datetime.now().isoformat(sep=" ", timespec="seconds") result = session.get(urljoin(baseurl, path), headers=headers, params=querystring, verify=False) jsonarray = result.json() json_object = json.dumps(jsonarray) #writing to outputfile…

VIEW QUESTION

JSON Object Query SQL Server

I have a JSON string which is the following: [ { "id": 103001058774, "name": "status", "label": "Status", "description": "Ticket status", "choices": { "2": [ "Open", "Open" ], "3": [ "Pending", "Pending" ], "4": [ "Resolved", "Resolved" ], "5": [ "Closed",…

VIEW QUESTION
Back To Top
Search