skip to Main Content

Powershell JSON Building

I am having problems getting assembling this Json in Powershell { "totalCount": 1, "list": [ { "type": "ToggleLightingState", "order": 1, "delay": null, "postDelay": null, "name": "Toggle lighting state of light L-17E-611-KB-1", "parameters": { "relayIds": [], "curveType": null, "behavior": null, "duration":…

VIEW QUESTION

Navigate in JSON with nultiple keys

I'm trying to get a key from a JSON from a website using the following code: import json import requests from bs4 import BeautifulSoup url = input('Enter url:') html = requests.get(url) soup = BeautifulSoup(html.text,'html.parser') data = json.loads(soup.find('script', type='application/json').text) print(data) print("####################################")…

VIEW QUESTION
Back To Top
Search