Python Forum
Find a specific keyword after another keyword and change the output
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Find a specific keyword after another keyword and change the output
#6
That is a json format file. You should load the json file and use the returned object.
with open(filename, "r") as file:
    data = json.load(file)
data will be a python dictionary, and you can navigate through the dictionary using keys.
Reply


Messages In This Thread
RE: Find a specific keyword after another keyword and change the output - by deanhystad - Oct-05-2023, 07:41 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Django "Unexpected Keyword Argument 'min_value'" AstralWeeks 0 270 Mar-27-2024, 04:56 AM
Last Post: AstralWeeks
  Why doesn't list require global keyword? johnywhy 9 902 Jan-15-2024, 11:47 PM
Last Post: sgrey
  output values change akbarza 3 561 Oct-18-2023, 12:30 PM
Last Post: deanhystad
  Why doesn't calling a parent constructor work with arbitrary keyword arguments? PurposefulCoder 4 986 Jun-24-2023, 02:14 PM
Last Post: deanhystad
  Can we use Python 4's end keyword in Python 2.7? mqnc 4 1,032 Apr-01-2023, 07:19 PM
Last Post: DeaD_EyE
  "unexpected keyword arg" when initializing my subclasses Phaze90 3 3,240 Nov-25-2022, 07:39 PM
Last Post: Gribouillis
  i want to use type= as a function/method keyword argument Skaperen 9 1,949 Nov-06-2022, 04:28 AM
Last Post: Skaperen
Question Keyword to build list from list of objects? pfdjhfuys 3 1,618 Aug-06-2022, 11:39 PM
Last Post: Pedroski55
  find some word in text list file and a bit change to them RolanRoll 3 1,571 Jun-27-2022, 01:36 AM
Last Post: RolanRoll
  Rain sensor output only on change Pete6 3 2,076 May-11-2022, 10:36 PM
Last Post: Pete6

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020